Don't use text_event(). Use lyric(). And btw, the 10**7*6 I used in my script that you copied over is just a weird way of representing the number 60 million (aka 60_000_000). The purpose of the number 60_000_000 is that there are that many milliseconds in a minute. set_tempo() sets the number of milliseconds that each quarter note will play for. So 60_000_000/360 will fit 360 quarter notes in one minute.
In your example, rather than use the auto-decrement operator, using for (1..$a) {} might be neater. The reason I used the auto-decrementer was to make it play for approxiamtely 66 seconds, no matter what tempo was selected. (As an aside, you may want to rename that $a vriable. $a and $b should be avoided as they are used in sorting. Besides, it's better to have names that make sense to what you are doing). Have fun :). I love midi so far heheh
If the above content is missing any vital points or you feel that any of the information is misleading, incorrect or irrelevant, please feel free to downvote the post. At the same time, please reply to this node or /msg me to inform me as to what is wrong with the post, so that I may update the node to the best of my ability.
In reply to Re: MIDI::Simple Timing text_events
by Coruscate
in thread MIDI::Simple Timing text_events
by zentara
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |