Old 10-08-2017, 10:11 AM   #1
benigno
Human being with feelings
 
Join Date: May 2017
Posts: 14
Default Script to generate Ear Training exercises

Hello,

This is my first script in Lua and in Reaper them both. So please be kind with me.

Anyway, the script allows users to create midi items to create ear training exercises. I have created a video explaining its functionality.

Special thanks to Lokasenna and the ReaTeam for sharing his GUI.

Web page with all the info http://benignocalvo.com/2017/10/07/e...re-mp3-script/
Github page for the script: https://github.com/benignoc/ear-training-chord-creation



Please let me know if you like it, and any feedback or corrections that it might need. Also I don't know if any other thing needs to be done for distribution... I mean if there is any kind of script repository to which one needs to submit the script or whatever.

Thank you guys,
Benigno.
benigno is offline   Reply With Quote
Old 10-09-2017, 02:01 PM   #2
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

Nice! Thank you for the script!

"Problem when clicking GO too quickly, the randomization depends on the time, but I think this goes down just to the second, so if you click twice quickly within the same second, the items generated will be identical If anyone can help me with this, it would be much appreciated"

- Easy fix: instead of using os.time, use reaper.time_precise

And just to be sure no same items are generated, you could save generated items into a table (or into a file) and when GO is clicked, you could index the table and see if the item about to be generated exists already. If yes, then make a new randomseed and check again until a non-existent item is generated
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 10-09-2017, 02:40 PM   #3
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default

Pretty good for a first script ! thanks for sharing :P
X-Raym is offline   Reply With Quote
Old 10-10-2017, 02:07 AM   #4
benigno
Human being with feelings
 
Join Date: May 2017
Posts: 14
Default

Quote:
Originally Posted by amagalma View Post
- Easy fix: instead of using os.time, use reaper.time_precise

And just to be sure no same items are generated, you could save generated items into a table (or into a file) and when GO is clicked, you could index the table and see if the item about to be generated exists already. If yes, then make a new randomseed and check again until a non-existent item is generated
Thanks that did wonders, it is updated.

Your suggestion is interesting, I disregarded doing this because I tend to create several during different sessions, so avoiding duplicates within one launch of the program was not so critical given that maybe you launch it several times. Still, it would be all the more solid doing it so... I'll add it to the TODOS.
benigno is offline   Reply With Quote
Old 10-10-2017, 03:47 AM   #5
benigno
Human being with feelings
 
Join Date: May 2017
Posts: 14
Default Thank you X-Raym

Quote:
Originally Posted by X-Raym View Post
Pretty good for a first script ! thanks for sharing :P
Hey thanks a lot dude.

It really means a lot coming from you, it was your videos that got me into this, so really ALL MY THANKS TO YOU.
benigno is offline   Reply With Quote
Old 10-11-2017, 01:39 PM   #6
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default

For a first try, you can be proud of yourself !

You went way further than my tutorials, good job !
X-Raym is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:34 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.