| View previous topic :: View next topic |
| Author |
Message |
Captain Caveman Jammer

Joined: 21 Feb 2006 Posts: 42 Location: The Megacontinent
|
Posted: Sat Sep 07, 2013 5:42 pm Post subject: Reaper Users: ReaSongBuilder script |
|
|
I've put together a ReaScript that takes the arrangement from the Jamstix Song Builder (IVVCCE etc) and creates regions in Reaper from the info, instantly (you can copy/paste) creating your song arrangement for visual and editing purposes.
http://stash.reaper.fm/v/17752/ReaSongBuilder.py
Last Updated 11 Sep 2013.
Last edited by Captain Caveman on Wed Sep 11, 2013 8:32 am; edited 1 time in total |
|
| Back to top |
|
 |
Azimuth Moderator & Beta Team

Joined: 19 Nov 2010 Posts: 2131
|
Posted: Sun Sep 08, 2013 11:29 am Post subject: |
|
|
Great idea Captain Caveman. I am getting a syntax error when running the script. I have Python 2.75 installed and Reaper 4.52.
It is probably is my own fault as I know nothing about using Reascript. Thanks for sharing it. |
|
| Back to top |
|
 |
Captain Caveman Jammer

Joined: 21 Feb 2006 Posts: 42 Location: The Megacontinent
|
Posted: Sun Sep 08, 2013 1:25 pm Post subject: |
|
|
Hmm.. that's strange, I'm running 2.75 and 4.52 too (32 bit (but that shouldn't matter).
Could you download it again in case something's wrong with the file and if it still produces a syntax error message, post it here?
Cheers! |
|
| Back to top |
|
 |
roy_arn Junior Jammer

Joined: 04 Mar 2013 Posts: 17 Location: United Kingdom
|
Posted: Sun Sep 08, 2013 3:44 pm Post subject: |
|
|
Just posted a reply on Reaper download page' I'm getting the following error on Reaper X64 windows 7, Python 3.3.2.
Line 47
length = int(sDataL[1][1]*2
Tab Error: inconsistent use of tabs and spaces in indentations.
Hope there's a resolution to this, being a keen Jamstix user this script sounds useful.
Roy |
|
| Back to top |
|
 |
Captain Caveman Jammer

Joined: 21 Feb 2006 Posts: 42 Location: The Megacontinent
|
Posted: Sun Sep 08, 2013 4:25 pm Post subject: |
|
|
Cheers, that was helpful - there was an extra space of indentation in that section. It was running fine with Python 2.7 (x86) and Reaper 4.52 (x86), but I've put it back to where it should have been so hopefully it will now run on everyone else's 'putes.
I've made it so that it opens a Settings dialog on first run and you can now change settings anytime by running the script and entering 'r' in the text field.
Fingers crossed.... |
|
| Back to top |
|
 |
Captain Caveman Jammer

Joined: 21 Feb 2006 Posts: 42 Location: The Megacontinent
|
Posted: Sun Sep 08, 2013 6:16 pm Post subject: |
|
|
| Just reuploaded a new version with a fix for a bug in the settings dialog where you couldn't close it if the fields contained the wrong kind of data. |
|
| Back to top |
|
 |
Azimuth Moderator & Beta Team

Joined: 19 Nov 2010 Posts: 2131
|
Posted: Sun Sep 08, 2013 10:50 pm Post subject: |
|
|
Sorry for not replying back Captain, I work nights and had to get some sleep. New version works perfectly, absolutely brilliant. Just don't compose anything with verses or choruses that are 1 bar in length.  |
|
| Back to top |
|
 |
Azimuth Moderator & Beta Team

Joined: 19 Nov 2010 Posts: 2131
|
Posted: Mon Sep 09, 2013 2:39 am Post subject: |
|
|
I've found one instance where the script is not laying out the regions correctly. Here's a link to the JS song file and a screen snip of JS's Song Sheet and Reapers Region Manager showing the results. The "song" is in 6/8 as the name implies.
It obviously is having trouble interpreting the Drum Solo that starts the "song". Does the script expect a "Intro" part explicitly? There is something else going haywire also however. It looks almost like the script assumes there are always at least 2 repetitions.
http://sdrv.ms/17jXSGA |
|
| Back to top |
|
 |
Captain Caveman Jammer

Joined: 21 Feb 2006 Posts: 42 Location: The Megacontinent
|
Posted: Mon Sep 09, 2013 5:42 am Post subject: |
|
|
Hmmm, I don't have time to check this out just now. Here's the code for the section lengths...
| Code: | # Here are all the possible sections.... A2, V1 etc = section length.
# Relative lengths are same as in Jamstix 3
# Ax = x bars Vx = Verse Length * x (see multipliers) Cx = Chorus Length * x
#
sectionData = {'I': ['Intro' , 'A2'], 'V': ['Verse' , 'VS'], 'P': ['Pre-chorus', 'VH'], \
'C': ['Chorus' , 'CS'], 'B': ['Bridge' , 'VS'], 'M': ['Middle 8' , 'VD'], \
'D': ['Drum Solo', 'A1'], 'S': ['Solo' , 'VS'], 'Q': ['Silence' , 'A2'], \
'L': ['Link' , 'VH'], 'X': ['Breakdown', 'VS'], 'E': ['Ending' , 'A1']}
multipliers = {'S': 1, 'H': 0.5, 'D': 2} |
... which shows that the Drum Solo should have a set length of 1 bar. So DDDD should be 4 bars. I'll have a look later.....
Cheers.
edit: it's a time signature thing. Everything should work at 4/4 at the mo, but I need to do some stuff to get it working at other time signatures.... |
|
| Back to top |
|
 |
Azimuth Moderator & Beta Team

Joined: 19 Nov 2010 Posts: 2131
|
Posted: Mon Sep 09, 2013 7:34 am Post subject: |
|
|
| No problem, just wanted to let you know about this. |
|
| Back to top |
|
 |
Captain Caveman Jammer

Joined: 21 Feb 2006 Posts: 42 Location: The Megacontinent
|
Posted: Mon Sep 09, 2013 11:32 am Post subject: |
|
|
Thanks very much for letting me know, it would have taken a while for me to come across that one, being a 97.6% 4/4 guy.
I'll hopefully get to the bottom of this tonight. |
|
| Back to top |
|
 |
roy_arn Junior Jammer

Joined: 04 Mar 2013 Posts: 17 Location: United Kingdom
|
Posted: Mon Sep 09, 2013 12:32 pm Post subject: |
|
|
| roy_arn wrote: | Just posted a reply on Reaper download page' I'm getting the following error on Reaper X64 windows 7, Python 3.3.2.
Line 47
length = int(sDataL[1][1]*2
Tab Error: inconsistent use of tabs and spaces in indentations.
Hope there's a resolution to this, being a keen Jamstix user this script sounds useful.
Roy |
Tried this today and getting the same error but line 71 instead of line 47.
Roy |
|
| Back to top |
|
 |
Captain Caveman Jammer

Joined: 21 Feb 2006 Posts: 42 Location: The Megacontinent
|
Posted: Mon Sep 09, 2013 2:32 pm Post subject: |
|
|
Sorry 'bout that. It turns out there were a couple of rogue tabs (instead of equal number of spaces) in there so whilst it looked perfectly inline, opening it up in Komodo Edit showed the problem. Python 3 must be fussier than v2 with that issue.
That's the version uploaded with those fixed. Going to check out the time sig problem in a while. |
|
| Back to top |
|
 |
roy_arn Junior Jammer

Joined: 04 Mar 2013 Posts: 17 Location: United Kingdom
|
Posted: Mon Sep 09, 2013 2:33 pm Post subject: |
|
|
Thanks CC I'll try this tomorrow.
Roy |
|
| Back to top |
|
 |
roy_arn Junior Jammer

Joined: 04 Mar 2013 Posts: 17 Location: United Kingdom
|
Posted: Mon Sep 09, 2013 2:42 pm Post subject: |
|
|
Couldn't wait so just quickly tried it out on my lappy, no errors now well done CC, now tomorrow I'll try it on my music comp and see how it works with Jamstix loaded, but looks like this will save quite some time laying out an arrangement.
Thanks Roy |
|
| Back to top |
|
 |
|