I want to do the following:
Open app.
Import .txt
Prompt user to make and name a Group. (Drum Stick Hits) for example.
Draw the import on a 127 by 127 field. Example:
1.How do I get extract each comma delimited block. I’m going to need to store Note and Velocity coordinates and place the rectangle accordingly, draw file name to the vector rectangle.
After the text has been imported I might want to drag around these boxes.
Then I want to assign opcodes to group level or sample block level like ADSR, LFO’S Sensativity MIDI channel…………..
http://www.rgcaudio.com/sfzformat.htm this is the opcode list.
After I am finished I want to spit this out to .sfz definition file according to the spec on the website.
Example sfz
http://www.rgcaudio.com/sfzsamples/horn.sfz
Any help/input much appreciated
Thank You
rl ·
I'd say it should be possible:
- use the parser and define a grammer to read in lines into string and float arrays. From the arrays you could build up the visual representation using the V-Loop module. There are some good parser examples posted to this forum.
- the interaction may be a bit harder. You have to track mouse coordinates within your 127x127 field and decide within which block you clicked the mouse and update the arrays according to mouse movements. Building the output file from the arrays should be the easiest task.
Unfortunately you can't change the mouse pointer icon to indicate movement/resize/etc, but maybe there are workarounds such as highlighting borders,....
aiit ·
Thanks rl,
I decided I’m not going to be dragging anything around; the zones are just a visual representation. I might want to click on one and have a data entry box(s) for note, velocity etc which should be much easier.
sonicfire ·
Any progress? That sounds interesting! 🙂
ansuman ·
tried to implement the same.very interesting and a flicker for sample player design using synthmaker....
regarding csv files plz check this and send ur comments.not exactly csv but a very simple text format.
source text file and schematic http://www.420megs.com/users/ansu/sample%20parser.zip
simply load the text file into properties of 1st module...
basically implemented is a 16 layer 240 samples per layer txt file with separate sample control parmeters
plz route the o/ps to respective midi modules and if someone could plz build the gui based sample editor that would be just gr8....
any comments welcome cheers...
Wrote something here? To have a post removed or your name hidden, write to [email protected].