Aleatoric MP3 sampler?
Hi,
This is my first post here! I've been lurking around a bit occasionally. There seems to be a lot of nice and smart people around.
I'm a complete newbie when it comes to Pd, but I've got my head around the basics. You might call me lazy for asking this (instead of wading throught he documentation), but I just thought I might get advice on a few different approaches to a patch that would:
1. Create a list of sub-directories that recide in a 'main' directory
2. Randomly pick one of these directories
3. Randomly pick one of several MP3 files in this sub-directory
4. Randomly pick a start time (offset) in that file
5. Randomly generate a sample time (say, 2-20 seconds) of data which is extracted from the file, X amount of time into the file (as determined by the previous step). And also making sure that the file is long enough for this to happen (that the sample length does not exceed what's left of the file after X seconds of 'offset').
6. Generate a fade-in/fade-out (envelope?) for this sample
7. Place it somewhere in the stereo field (panning left or right) or even better, a placement in a 5.1 surround field.
8. Play it
9. Repeat and layer lots of random sounds from random locations according to a set 'density' control in the patch.
And also, how would I set up Pd to output 16 channels into Soundflower for recording individual tracks and later mixing them surround?
Regards
MP3 control through reacTiVision
I posted the following in the reacTiVision forum and someone toldme the next quote.
"This is about reacTiVision.
Is the following possible:
I use Traktor (DJ software) and I want to be able to setup a fiducial to represent a deck in Traktor. I would like to have a center in the reacTable and then the distance of the fiducial from the center will control the volume and the orientation of the fiducial the pitch of whatever is being played in that deck. This way I can have a max of 4 fiducials for each deck. This would help a lot.
A little explanation: Before you ask why I want to do this, let me justify. I listen to Indian Music and it is all in MP3 not midi so i don't know how to control it from the reacTable straight away, if there is a way please do tell me.
PLEASE PLEASE help me, I really want to do this. "
"You can use Pure Data ( http://www.puredata.org/ ) to load and play back the MP3 files as samples. Setting a patch up with volume and pitch is pretty easy. There may be some limits on how big a sample can be but I don't know what they might be. You can ask here=> http://puredata.hurleur.com/ It is Pure Data forum with some smart folks in it.
Bill "
So could someone tell me how this is possible.pleasehelpme.
It would be nice if someone cold post the code for i mp3 example file and I could try larn fromit and implement to other mp3s
thanks
Composition environment made with data structures: Solitude
This is my first composition using Pd's data structures, and I found that I enjoyed the process quite a bit, once I got the patch debugged. The experience was a good combination of visual editing with the mouse and text editing with the keyboard. The visual representation worked well for composition in this style. By biggest problem was finding a way to represent in the score all of the things that I wanted to control. Since I wanted to have the score generate the piece, I did not add a couple features, like pitch shifting and voice allocation control, which I would have liked to have.
Solitude_-_Hans-Christoph_Steiner_-_2004.mp3
For more info:
Musical Self-Portraits!
In short, no. *
If you are curious why the idea is flawed contact me and I will endeavour to explain.
* However, we aim not to disappoint here - so attached is a ringtone for your friend. It is generated from the data you provided and is therefore "personalised". As with all presents it's the thought that counts, and since you have put thought into this it is already a unique and special present. Your friend may be intrigued so you can tell him the mapping is
f(t) = ((ln F)^2)/2Fmax * 256 + 72 as a midi note number at the Y axis time in milliseconds.
Escher-esque chord progressions
I've been getting into writing patches that generate music all by themselves, using mathematical
rules that apply quite nicely to music theory. I've made a few rhythm patches that make nice cross
rhythms using metronome division and delays (with values derived from multiples of the master
metronome), and i'll post these too if anyone is interested.
In this thread I'm showing off my "Mauritz Escher like Chord progressions" patch.
Screenshot:
Mp3: http://responsible7.googlepages.com/zenpho_escher_pd.mp3
Patch: http://responsible7.googlepages.com/zenpho_escher.pd
First some basic music theory:
(skip this if you're comfortable with chords, 7ths, and inversions)
A major scale is constructed of 8 notes, with the "root" note doubled at the 8th note.
For the key of C major (all the "white" notes on a piano) the names and numbers of the notes in
the scale of C-major are:
Name, Number:
C, 1st (root)
D, 2nd
E, 3rd
F, 4th
G, 5th
A, 6th
B, 7th
C, 8th (remember the root is doubled at the octave)
A triad is constructed of the 1st, the 3rd, and the 5th notes in the scale.
A SEVENTH chord is constructed of a triad (notes 1,3 and 5) PLUS the 7th note in the
scale. So a C major 7th is note 1,3,5,7 or C,E,G,B.
Up until now we've been describing "standard" voicings of the chords, in other words, the notes
are played so that the root is the lowest pitched note, the 3rd is higher, the 5th is higher
still, and the 7th is the note just below the octave of the root.
At the risk of sounding redundant, "octave numbers" after the note name help clarify which octave
the note is to be played in. To play a C major 7th on the third octave, we would write:
C3,E3,G3,B3. To play it an octave higher we would write: C4,E4,G4,B4.
"Inversions" of chords re-order the pitches of the notes, but still play notes with the same
"name" as the 3rd, 5th, 7th etc. For example:
C3,E3,G3,B3 is a standard C major 7th...
...and G2,C3,E3,B3 is an inversion. All the notes are there (C,E,G,B) but they are in a different
order to the normal "Root, Third, Fifth, Seventh" arrangement. In this case, we say that "the
fifth is in the root".
Okay so now we know what a major 7th chord is. Lets deal with chord progressions.
Now imagine playing C3,E3,G3,B3 and removing the "root" (the C3) from the notes played,
we have a chord that reads "E3,G3,B3" - we were playing C major 7th and now we're playing E minor.
*THIS IS A VERY IMPORTANT STEP* Moving from C major 7 to E minor sounds "natrual" because the
notes that occour in C major 7 ALSO occour in the E minor.
Now lets make this E minor chord a 7th...
We've said before that a 7th chord can be constructed by playing the 1st, 3rd, and 5th notes, PLUS
the 7th note in the scale.
The scale of E minor (a flavour of minor) is:
Name, Number
E, 1st (root)
F#, 2nd
G, 3rd
E, 4th
B, 5th
C, 6th
D, 7th
E, 8th (octave)
The 7th note is "D" so we add the D note to our E minor triad to make E minor 7th.
E minor 7th is therefore: "E3,G3,B3,D4".
We can extend this E minor again, removing the root, working out the new scale for G major, adding
the 7th to make G major 7th, and again, and again, and again... but if we do - we keep moving
*UP IN PITCH* and spiral off the end of the keyboard.
HOW THE PATCH WORKS
Okay, so what my patch does is to take the idea of generating new 7th chords over and over,
but to play inversions of these chords so that the notes stay inside a single octave. If the
"root" note is in the 3rd octave, C3 for example. Then when I move to E minor, the D4 is
transposed to be a D3, to keep within this octave range.
Due to the fact that there are 12 semitones in an octave, and notes that fall outside the octave
range will wrap around to be an octave lower. The maths for generating the new chords basically
involves taking each note in the current major 7th chord and adding two semitones to each note in
turn.
Now our terminology could cause confusion here, because there are "notes in a scale" and "notes in a chord"... So I'm going to define some notation to show when i'm talking about the notes in a
chord.
For example:
A C major 7th has the notes C3,E3,G3,B3.
Note-1-in-the-chord is to be defined as chord_note_1.
Note-2-in-the-chord is defined as chord_note_2.
Note-3-in-the-chord is defined as chord_note_3.
Note-4-in-the-chord is defined as chord_note_4.
chord_note_1 has the pitch C3.
chord_note_2 has the pitch E3.
chord_note_3 has the pitch G3.
chord_note_4 has the pitch B3.
It is important to be clear about the idea of "pitch", "chord_notes" and "scale_notes" because
because chord_note_3 has the pitch "G3" and scale_note_3 of C major which is the pitch "E3".
Back to the procedure for generating new seventh chords.
We generate a major 7th to begin with.
C3,E3,G3,B3.
We add 2 semitones to chord_note_1 to get "D3", and we leave the other notes alone.
Our chord now reads: D3,E3,G3,B3.
Which is an "inversion" of E minor 7th.
This time we add 2 semitones to chord_note_2 to get "F#3", and we leave the other notes alone as
before.
Our chord now reads: D3,F#3,G3,B3
This is an inversion of G major 7th.
This time we add 2 semitones to chord_note_3 to get "A3", we leave the other notes.
Our chord now reads: D3,F#3,A3,B3
This is an inversion of B minor 7th.
This time we add 2 semitones to chord_note_4 to get C#4...
*BUT C#4 IS OUTSIDE THE OCTAVE 3! So we TRANSPOSE it down to C#3*
Our chord now reads: D#3,F#3,A3,C#3
This is an inversion of D major 7th.
After my patch modifies all 4 chord_notes, it moves back to chord_note_1, and adds another
2 semitones... over and over.
Eventually we get back to C major 7th again, but on the way we move through a variety of different
chords that evokes very interesting changes of moods.
Want to try playing with it?
Mp3: http://responsible7.googlepages.com/zenpho_escher_pd.mp3
Patch: http://responsible7.googlepages.com/zenpho_escher.pd
Render or stream or otherwise save/record pd output into an mp3 or wav
Mp3cast~ : emits an mp3 stream to an icecast/shoutcast server.
The shoutcast~ object written by Olaf Matthes is a similar object for Windows
is there any mp3 stream for osX?
Render or stream or otherwise save/record pd output into an mp3 or wav
How does one do this? I am at a loss.
Some traks for you
ok break beat men !
I've also a special track arranged, organized in NUENDO and manipulations, transformations from pure data :
[url=http://impala.utopia.free.fr/membres/jerome/mp3/projets/exportation_d_artistes.mp3
]http://impala.utopia.free.fr/membres/jerome/mp3/projets/exportation_d_ artistes.mp3
8 Mo
Some samples are from an audio advertissment (?) which is in Emule french when we download file. It' says that what we are doing it is illegal ! bouou !
End of year warehouse clearance
***a remix of my favourite cthulu master:
[url=http://www.m-pi.com/sinewaves/hidaris-lash-inhaler.mp3
]http://www.m-pi.com/sinewaves/hidaris-lash-inhaler.mp3
***the original lyrics to the following song were:
"i'm on the drug that killed river phoenix"
[url=http://www.m-pi.com/sinewaves/realfuckenhigh.mp3
]http://www.m-pi.com/sinewaves/realfuckenhigh.mp3
***here's the type of rushed mania you get when you make a song in the 20 minutes before your laptop battery runs out
[url=http://www.m-pi.com/sinewaves/nobatts.mp3
]http://www.m-pi.com/sinewaves/nobatts.mp3
***a recording of the lush clicks you get when using the trigon patch from kestner
[url=http://www.m-pi.com/sinewaves/tansai.mp3
]http://www.m-pi.com/sinewaves/tansai.mp3
(link to patch) http://chiba.cool.ne.jp/kestner_2002/