Re: [LAU] sending random midi notes from a bash script

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-audio-user@...>
Date: Sunday, February 7, 2010 - 6:29 pm

Pedro Lopez-Cabanillas a écrit :

>>> As an example, here is a bash script that can be used with cron, to play

> Regards,

Hi Pedro,

Somehow fascinating!
Sorry for hijacking this thread but I'm wondering if you have any
pointers for the following case: (It's about randomization.)
I'm looking for randomize Note On from a midi file.
I have two way for sending this file, a standard file generated by
Lilypond or a text file by midicomp.
Here is an excert from midicomp file:

062:00:000 On ch=10 note=f#3 vol=105
063:-1:-576 Off ch=10 note=f#3 vol=64
063:-1:-384 On ch=10 note=f#3 vol=95
063:-1:-192 Off ch=10 note=f#3 vol=64
063:-1:000 On ch=10 note=f#3 vol=127
063:00:-576 Off ch=10 note=f#3 vol=64
068:00:000 On ch=10 note=f#3 vol=127
069:-1:-576 Off ch=10 note=f#3 vol=64
074:00:000 On ch=10 note=f#3 vol=127
074:00:192 Off ch=10 note=f#3 vol=64
074:00:384 On ch=10 note=f#3 vol=95
074:00:576 Off ch=10 note=f#3 vol=64
074:01:000 On ch=10 note=f#3 vol=105
074:01:192 Off ch=10 note=f#3 vol=64

I'm looking for randomizing the third column: 192 or -576...
between + or -3 units for instance. ( 000 is a special case)

I've googled some info about $RANDOM but I haven't been successful in
my rather random! investigations. :)
Have you any advice or pointers?
Midiclocking regards.
--
Phil.

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-user

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAU] sending random midi notes from a bash script, james morris, (Sat Feb 6, 2:46 pm)
Re: [LAU] sending random midi notes from a bash script, Pedro Lopez-Cabanillas, (Sat Feb 6, 5:33 pm)
Re: [LAU] sending random midi notes from a bash script, james morris, (Sun Feb 7, 12:42 pm)
Re: [LAU] sending random midi notes from a bash script, Pedro Lopez-Cabanillas, (Sun Feb 7, 1:51 pm)
Re: [LAU] sending random midi notes from a bash script, Ken Restivo, (Thu Feb 11, 9:38 am)
Re: [LAU] sending random midi notes from a bash script, Philippe Hezaine, (Sun Feb 7, 6:29 pm)
Re: [LAU] sending random midi notes from a bash script, Gabriel M. Beddingfield, (Sun Feb 7, 7:43 pm)
Re: [LAU] sending random midi notes from a bash script, Philippe Hezaine, (Sun Feb 7, 8:10 pm)
Re: [LAU] sending random midi notes from a bash script, Philippe Hezaine, (Mon Feb 8, 7:02 pm)
Re: [LAU] sending random midi notes from a bash script, Gabriel M. Beddingfield, (Tue Feb 9, 12:28 am)
Re: [LAU] sending random midi notes from a bash script, Philippe Hezaine, (Tue Feb 9, 8:26 am)
Re: [LAU] sending random midi notes from a bash script, Gordon JC Pearce, (Sat Feb 6, 3:46 pm)
Re: [LAU] sending random midi notes from a bash script, David Santamauro, (Sat Feb 6, 3:46 pm)
Re: [LAU] sending random midi notes from a bash script, james morris, (Sat Feb 6, 4:50 pm)