|
|
|
05-01-2017, 01:37 AM
|
#241
|
Human being with feelings
Join Date: Nov 2010
Location: In the abyss...gazing at you...
Posts: 1,237
|
Quote:
Originally Posted by Lokasenna
Dammit, sorry.
This error shows up once in a while but I can never reproduce it on my end, so it's really hard to pin down. I know exactly what part of the code is causing it, but can't figure out why those values would ever be nil.
Updated the script again (v1.31), see if it works now.
|
Thank you. Seems to work again. One thing I recognized was that it starts in an unusual area of my monitor, though.
It pops up in the upper right corner and I first have to stretch it a bit to grab the window so I can position it into a place I can work with it.
|
|
|
05-01-2017, 03:31 AM
|
#242
|
Human being with feelings
Join Date: May 2009
Location: Germany
Posts: 214
|
Attempt to compare nil with number
Hi, when i want to open this script it ask me to choose a reascale file. After that i get the message "attempt to compare nil with number". Beforehand (in older versions) it works fine.
Can anyone help?
|
|
|
05-01-2017, 05:15 AM
|
#243
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
Looks like my extra error-checking broke something else.
Updated to 1.32, should be fixed.
|
|
|
05-02-2017, 01:25 PM
|
#244
|
Human being with feelings
Join Date: May 2009
Location: Germany
Posts: 214
|
Ok, thanks now it works again. Great!
One problem and this was also in previous versions, the scriptwindow opens in the upper right of the screen and I can´t grab it with the mouse to change some settings etc. The titlebar is hidden...
Is there a ini file or something else where I can change the opening position of the scriptwindow?
|
|
|
05-02-2017, 01:28 PM
|
#245
|
Human being with feelings
Join Date: May 2009
Location: Germany
Posts: 214
|
Ahh, when I stretch the window as Thewhistler described above..than it works for me also... mhmm.. not a biggie...
|
|
|
05-02-2017, 02:00 PM
|
#246
|
Human being with feelings
Join Date: Nov 2010
Location: In the abyss...gazing at you...
Posts: 1,237
|
Quote:
Originally Posted by egoplasma
Ahh, when I stretch the window as Thewhistler described above..than it works for me also... mhmm.. not a biggie...
|
Right, not a biggie....hm...
I thought it might have something to do with my somewhat quirky dual monitor setup.
1 notebook + a 27" display.
Do you have a similar setup?
|
|
|
05-02-2017, 02:05 PM
|
#247
|
Human being with feelings
Join Date: May 2009
Location: Germany
Posts: 214
|
Quote:
Originally Posted by TheWhistler
Right, not a biggie....hm...
I thought it might have something to do with my somewhat quirky dual monitor setup.
1 notebook + a 27" display.
Do you have a similar setup?
|
Yes, I have also a dual monitor setup. 2x 24" display. In older versions this was not a problem.
|
|
|
05-02-2017, 09:55 PM
|
#248
|
Human being with feelings
Join Date: Nov 2010
Location: In the abyss...gazing at you...
Posts: 1,237
|
Quote:
Originally Posted by egoplasma
Yes, I have also a dual monitor setup. 2x 24" display. In older versions this was not a problem.
|
Hah...that´s it. Maybe the script can place the window on the main screen.
|
|
|
05-03-2017, 05:48 AM
|
#249
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
That's indeed a dual monitor bug - there's no documentation for the API functions I use to make sure the window is completely on-screen, so I have no idea how to fix it.
|
|
|
05-03-2017, 07:18 AM
|
#250
|
Human being with feelings
Join Date: Feb 2017
Posts: 4,813
|
this seems very nice! but i can't figure out how to get it working. I installed via reascript, made it a available on midi tool bar. I click in "loka help" button and GUI appears asking me for a reascale file. I select sample.reascale in reaper folder. And nothing seems to work after. No searched results, and no legal chord. What am i doing wrong?. Thanks!
|
|
|
05-04-2017, 04:54 AM
|
#251
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
That's strange; after selecting a .reascale, it should automatically load the first scale in the file (Blues, I think).
Are you able to post a .gif or a video of the issue?
|
|
|
05-04-2017, 06:44 AM
|
#252
|
Human being with feelings
Join Date: Feb 2017
Posts: 4,813
|
Quote:
Originally Posted by Lokasenna
That's strange; after selecting a .reascale, it should automatically load the first scale in the file (Blues, I think).
Are you able to post a .gif or a video of the issue?
|
thanks man! i took some screen shots! later can find a way to post a video, but i think it's basically this.
|
|
|
05-04-2017, 11:02 AM
|
#253
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
Looks to me like your sample.reascale isn't being loaded properly, or the file is corrupt. Can you copy/paste the contents? (Just open it in any text editor)
|
|
|
05-05-2017, 05:12 AM
|
#254
|
Human being with feelings
Join Date: Feb 2017
Posts: 4,813
|
Ok. Thank you! here it is:
# .reascale files can be loaded into the REAPER MIDI editor, via the Scale dropdown list.
#
# Types (the first number):
# -2: end of submenu
# -1: separator
# 0: scale
# 1: chord
# 2: submenu in scale section
# 3: submenu in chord section
#
# Lines starting with '#' are ignored.
#
# To create a scale definition, place each interval number
# at the correct number of semitones from the left (root).
#
# For snapping to scale, all that matters is which values are not zero.
# The actual interval numbers are only used when transposing, and can be repeated.
# If needed (for exotic scales), use A=10, B=11, C=12, etc.
#
# examples:
#
# 0 "Major" 102034050607
# 1 "Major triad" 100030050000
# 0 "Blues" 100304450070
# 1 "Dim 7th chord" 100300500700
-1
0 "Whole Tone" 102030506070
2 "Modes"
0 "Dorian" 102304050670
0 "Phrygian" 120304056070
0 "Lydian" 102030450607
0 "Mixolydian" 102034050670
0 "Aeolian" 102304056070
0 "Locrian" 120304506070
-2
1 "Tritone" 100000500000
|
|
|
05-05-2017, 11:35 AM
|
#255
|
Human being with feelings
Join Date: Nov 2010
Location: In the abyss...gazing at you...
Posts: 1,237
|
sorting scales
Hi all together,
while you are talking about scale files...is there a way of sorting these?
I don´t need so much exotic ones and would love to have my scales neatly and simple.
Greetz
|
|
|
05-05-2017, 12:52 PM
|
#256
|
Human being with feelings
Join Date: Apr 2016
Posts: 68
|
Quote:
Originally Posted by egoplasma
Hi, when i want to open this script it ask me to choose a reascale file. After that i get the message "attempt to compare nil with number". Beforehand (in older versions) it works fine.
Can anyone help?
|
same here
Today downloaded from reapack
|
|
|
05-05-2017, 01:18 PM
|
#257
|
Human being with feelings
Join Date: Apr 2016
Location: UK, near Europe
Posts: 878
|
Just updated this from ReaPack. It loads a reascale fine but when I go to choose a scale it lists not only the type 0 (scale) entries from the reascale but also all the type 1 (chord) entries. Is that expected behaviour ? I thought it showed only the scales but my memory isn't what it used to be.
Steve
|
|
|
05-05-2017, 01:26 PM
|
#258
|
Human being with feelings
Join Date: Apr 2016
Location: UK, near Europe
Posts: 878
|
Quote:
Originally Posted by TheWhistler
while you are talking about scale files...is there a way of sorting these? I don´t need so much exotic ones and would love to have my scales neatly and simple.
Greetz
|
You can edit the .reascale file. It's just a text file so you can take out any entries you don't want and put the rest in your preferred order and then save it with a new name. That's what I've done because I mostly use just a few fairly ordinary scales.
Steve
|
|
|
05-05-2017, 07:29 PM
|
#259
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
deeb:
Nothing wrong there; I copy/pasted it to a file and it loads fine for me. By any chance does it work correctly with a different .reascale? (There are some here if you need: https://stash.reaper.fm/browse.php?q=...=th&o=nd&pp=24 )
xinky:
Does it specify a line number along with that message? Something like:
...ing\REAPER\Scripts\Lokasenna\Lokasenna_Theory Helper.lua:1397: attempt to index a nil value (field '?')
slipstick:
It's always included chords, but I'll put an option to ignore them on my idea list.
What I'm gathering from all this, and my testing just now, is that Theory Helper has a lot of bugs and could use some love. I'll see what I can do.
|
|
|
05-06-2017, 10:44 AM
|
#261
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
Still on the list, but it largely depends on how much inspiration I feel toward a given script at any point in time.
|
|
|
06-11-2017, 05:25 AM
|
#262
|
Human being with feelings
Join Date: May 2016
Posts: 369
|
Hello Lokasenna , i modded your script slightly so the chords aren´t pasted at the edit cursor position but instead replace the selected note(s) (position and length) .
i think that makes the addon more usefull , just record a nice midi rythm with your keyboard and then go through the midi item´s notes and replace simple notes with the chords you like from the addons panel
but its really a bad hack XD
what i would find very usefull if the chords would sorted by function i.e I II III IV V VI VII and i ii iii iv v vi vii respectively would mean showing the chords of both major and minor in the same tab , waht do you think of that idea?
|
|
|
06-11-2017, 12:22 PM
|
#263
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
The first idea is neat; I'll put that on my list of things to try if and when I ever do another update.
The second... I'm not sure I understand. It already sorts them by scale degree, and they're all labelled as to maj/min. Splitting them up that way would leave out suspended chords, as well.
|
|
|
06-12-2017, 11:48 AM
|
#264
|
Human being with feelings
Join Date: May 2016
Posts: 369
|
Quote:
Originally Posted by Lokasenna
The first idea is neat; I'll put that on my list of things to try if and when I ever do another update.
The second... I'm not sure I understand. It already sorts them by scale degree, and they're all labelled as to maj/min. Splitting them up that way would leave out suspended chords, as well.
|
yeah that was worded wrong , i meant in a melody you might wanna go
C D Eb F (cmajor cminor cminor cmajor / I II III IV ) ... or even simpler
III - iii - III - iii
which isn´t possible now unless you switch from minor to major and vice versa all the time in the midi editor and activate "use midi editor scale" in your script options.
maybe it could display all chords for all notes all the time (very big chord board)
and
A) grey out all chords not in the scale (but still clickable nontheless) and
B) color-coding the buttons with their function family aka I ii iii IV V vi vii ... or T sP Dp ... (with red blue green etc. or so ) AND also for the corresponding minor/major i II III iv v VI VII. (discern the two by dark and light colors) or just write the degree in to the respective buttons when holding alt .. something like that
i also found a fault in the reascale files .
... under position 2 theres always a few chords missing prominently the D major and variants in this case
sad to hear you won´t update anytime soon , maybe i can tinker arouind but its the first time ever using lua .
Last edited by Ulf3000; 06-12-2017 at 11:59 AM.
|
|
|
06-13-2017, 10:40 AM
|
#265
|
Human being with feelings
Join Date: Apr 2017
Location: Germany
Posts: 8
|
Hi Lokasenna,
my highes appreciation for your awesome work! Unfortunately the script brings up the following error:
...\ReaTeam Scripts\MIDI Editor\Lokasenna_Theory Helper.lua:116: 'reaper.APIExists' is unknown
|
|
|
06-13-2017, 10:45 AM
|
#266
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
That function was added in Reaper 5.23, so... you might want to update it. :P
|
|
|
06-14-2017, 03:56 AM
|
#267
|
Human being with feelings
Join Date: Apr 2017
Location: Germany
Posts: 8
|
Never change a running system.. until it doesn't run any more Good point - i'll do that.
|
|
|
06-26-2017, 11:32 AM
|
#268
|
Human being with feelings
Join Date: Jun 2017
Posts: 7
|
theory helper script
Hi i get this error message Lokasenna_Theory Helper.lua:5356: attempt to index a nil value (field '?') when i try to open theory helper. It would be helpful if i can get a solution thanks in advance.
|
|
|
06-29-2017, 04:13 AM
|
#269
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
Looks like an issue reading your scale file.
1. Do you have a .reascale file loaded in the MIDI Editor?
(check "Scale" at the bottom, then click the scale type - defaults to "Major" - and choose "Load...")
2. Is the script asking you to load a .reascale when you run it?
3. What .reascale file are you using?
|
|
|
06-29-2017, 06:35 AM
|
#270
|
Human being with feelings
Join Date: Feb 2017
Posts: 4,813
|
i am back to this again, would like to see this sorted in my machine. I provide 2 images:
The first image i want to point how that error shows in the Gui. The Second it's a message that appears when click in the button set.
Probably the separators i referred to you in another thread has something to do with this? if you need to have a remote connection on my computer, just say something!
Thank you
|
|
|
07-01-2017, 02:55 AM
|
#271
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
1. If you mean the "<bad string>" message... every time I think I've fixed that it shows up again somewhere else. If you click the Type box above it and choose any of the options, I believe it should go away and everything should work fine.
I'll add that to my list of things to look at, but I don't have a ton of time for really deep bug fixes right now.
2. I can only reproduce that error if I click the Set button when there are 0 results available from the current search. I'll add a check for that, but are you getting it in a different circumstance?
|
|
|
07-15-2017, 05:20 PM
|
#272
|
Human being with feelings
Join Date: Jan 2009
Posts: 32
|
OK folks, new to the game. I'm getting the prompt for reascale and have a sample reascale in Reaper. Is this what I'm supposed to use? If not, what do I use and where do I get it? Are they available in ReaPack?
SORRY - Should have read entire thread first - IGNORE PLEASE
__________________
Personally I'm always ready to learn, although I do not always like being taught.
Sir Winston Churchill (1874 - 1965)
Last edited by bigcatJC; 07-15-2017 at 07:17 PM.
|
|
|
08-05-2017, 11:18 AM
|
#273
|
Human being with feelings
Join Date: Jul 2017
Posts: 26
|
This is a great tool! One thing I can't figure out though is what the VMK is supposed to do. No matter what I can't get it to play chords (if that is what is supposed to happen)?
|
|
|
08-05-2017, 02:28 PM
|
#274
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
You don't use the VMK directly; ReaScripts don't have a way to play notes directly, but they can send MIDI messages to the VMK, so you need the track armed and set to the VMK (or All) in order to hear the note preview.
|
|
|
08-15-2017, 08:04 AM
|
#275
|
Human being with feelings
Join Date: May 2017
Posts: 371
|
Quote:
Originally Posted by Lokasenna
I'm not that great when it comes to music theory. I know enough to get by, but figuring out chords and scales usually means having to get a pen, draw myself a fretboard, and work things out by hand.
Wait, isn't that why we have these expensive digital glorified abacuses?
The script is available via ReaPack, or you can install it the old-fashioned way by right-clicking this link right here and choosing Save As.
Release history:
Jan. 26, 2017 - Replaced by 'Theory Helper', lots of new stuff; see below
Jan. 01, 2017 - Chords can be inserted as arpeggios, added a velocity slider as well
Dec. 28, 2016 - Added buttons to cycle through a scale's modes
Dec. 26, 2016 - Added to ReaPack.
Dec. 25, 2016 - Rearranging again, added buttons to play the current scale up or down, highlight the last-played chord for each degree.
Dec. 23, 2016 - Rearranged things, added chord arpeggios (preview-only) and button tooltips.
Dec. 23, 2016 - Initial release.
Instructions:
- Run it from a MIDI editor.
- See the script's Help tab for some basic documentation. Most things also display a tooltip.
- At some point I'll think about putting further documentation here.
Let me know if you have any questions, comments, bugs, etc, and feel free to click the Donate button down below. No hard feelings if you don't; this stuff is fun anyway.
|
Hey when I launch the script it asks for a reascale file?
|
|
|
08-15-2017, 08:08 AM
|
#276
|
Human being with feelings
Join Date: May 2017
Posts: 371
|
Quote:
Originally Posted by Cloudswim
Hey when I launch the script it asks for a reascale file?
|
I have set it to snap and a certain scale but its still asking for a rescale file?
And the version is 1.32. Thanks alot!
Last edited by Cloudswim; 08-15-2017 at 08:17 AM.
|
|
|
08-15-2017, 09:57 AM
|
#277
|
Human being with feelings
Join Date: Jun 2009
Location: Earth
Posts: 1,340
|
Quote:
Originally Posted by Cloudswim
I have set it to snap and a certain scale but its still asking for a rescale file?
And the version is 1.32. Thanks alot!
|
Here ya go.., https://forum.cockos.com/showthread.php?t=75857
Have fun!
|
|
|
08-15-2017, 06:20 PM
|
#278
|
Human being with feelings
Join Date: May 2017
Posts: 371
|
Quote:
Originally Posted by Anton9
|
NICE!
|
|
|
08-17-2017, 05:15 PM
|
#279
|
Human being with feelings
Join Date: May 2017
Posts: 371
|
I don't know but this dosen't seem to work, it just says unable to preview notes
|
|
|
08-17-2017, 05:18 PM
|
#280
|
Human being with feelings
Join Date: May 2017
Posts: 371
|
Quote:
Originally Posted by Lokasenna
You don't use the VMK directly; ReaScripts don't have a way to play notes directly, but they can send MIDI messages to the VMK, so you need the track armed and set to the VMK (or All) in order to hear the note preview.
|
what is VMK? ;-P
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 06:11 AM.
|