rafamj / elecmidi

C program to help write electribe 2 patterns.
GNU General Public License v3.0
8 stars 1 forks source link

some feedback #2

Open coderofsalvation opened 2 years ago

coderofsalvation commented 2 years ago

This is a cool project, sortof a little csound language for electribe2. :heart: I'm trying to get this to work on my es2 (currently I can change the pattern number using elecmidi but the read, see testoutput below). some ideas:

$ elecmidi
env-var ELECTRIBE2 found ('/dev/midi2:0')
starting interactive prompt
elecmidi> 
elecmidi> ls
example1.txt example2.txt template.txt idea.mid
elecmidi> import template.txt
elecmidi> lfo 1 oscillator sin 4 3 5   # apply lfo on oscillator-param between 3..5 with 4hz sinewave
elecmidi> lfo 1 ifx sin 4 2 3   # apply lfo on IFX-param between 2..3 with 4hz sinewave
elecmidi> import idea_v1.mid
elecmidi> read
elecmidi> export idea_v2.mid

testoutput

$ cat test1.txt 
#selects pattern 1 (The pattern is only modified in memory. In order to save it permanently is necessary to pulse the "write" button)
goto 6
wait 1
stop
$ cat test1.txt | ./elecmidi 
# works ..the electribe2s changed it pattern to 6

$ cat test1.txt 
#selects pattern 1 (The pattern is only modified in memory. In order to save it permanently is necessary to pulse the "write" button)
goto 6
read                               # <----------------- adding `read`
wait 1
stop
$ cat test1.txt | ./elecmidi 
error receiving data 0

ps. this was compiled with:

int channel=1 // I've also tried 0 
int sampler=1; //0 synth 1 sampler
rafamj commented 2 years ago

Hello,

  I am not sure if it's worth adding more things to the program. May be in the future I could add the import command.

  If you can change the  pattern number then you can run all commands. The command read must always be at the beginning, to initialize the data, and at the end there must be a write.   If you write echo "print !" | ./elecmidi >a.txt  then in a.txt you have the current pattern. You can examine and edit the pattern and sent it again to the electribe with cat a.txt | ./elecmidi Cheers

On Wednesday, August 10, 2022 at 10:42:49 AM GMT+2, coderofsalvation ***@***.***> wrote:  

This is a cool project. I'm trying to get it to work (currently I can change the pattern number using elecmidi). some ideas: $ elecmidi env-var ELECTRIBE2 found ('/dev/midi2:0') starting interactive prompt elecmidi> elecmidi> ls example1.txt example2.txt template.txt idea.mid elecmidi> import template.txt elecmidi> lfo 1 volume sin 4 0 80 # apply lfo on volume-param between 0..80 with 4hz sinewave elecmidi> import idea_v1.mid elecmidi> read elecmidi> export idea_v2.mid — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>