Kara-Moon Forum
April 28, 2024, 11:21:57 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: You can go back to the main site here: Kara-Moon site
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: timsplit.py bails half way through  (Read 5368 times)
commanda
Newbie
*
Posts: 2


« on: December 04, 2009, 11:46:43 PM »

It appears to fail on the DRUM track. Here's a cut'n'paste of the output. Any suggestions appreciated.

Amanda


# /usr/share/mma/util/timsplit.py misunderstanding.mma
Creating background track: bg.wav
MMA file 'misunderstanding.mma' being split to:  BASS CHORD-CLEAN CHORD-CLEAN2 CHORD-SUS DRUM DRUM-KICK DRUM-KICKB DRUM-OHH DRUM-SNARE DRUM-TAM SOLO-1 SOLO-2 SOLO-3 WALK
Creating: Bass.wav
Creating: Chord-Clean.wav
Creating: Chord-Clean2.wav
Creating: Chord-Sus.wav
timsplit error 256
Running without psyco support, installation of psyco recommended.
Warning:
        No RC file was found or processed
No data created. Did you remember to set a groove/sequence?
Logged
bvdp
Kara-Moon Master
****
Posts: 1437


WWW
« Reply #1 on: December 05, 2009, 01:03:31 AM »

I probably need to enable more debugging into the timsplit Smiley But, it's really just for me  ...

But, I guessing the problem is that timidity can't process some of the drum tones. If you take your original mma generated midi track and do timidity -Ow somefile.wav somefile.mid (assuming the input file was somefile.mma) does that work?

All that timsplit is doing is generating a series of midi files with different tracks enabled and then using timidity to create a wav.

The other thing to try is to run mma with different tracks like the initial displayed stuff. So, if it is failing on
 DRUM or DRUM-KICK try "mma -T DRUM-KICK somefile".

Let me know!

Best.


   
Logged

My online life: http://www.mellowood.ca
bvdp
Kara-Moon Master
****
Posts: 1437


WWW
« Reply #2 on: December 05, 2009, 01:38:00 AM »

Just looking at this again ... and it really looks like a MMA problem, not timidity. So, to confirm would you please make a change to timsplit.py in line 80 and change:

  print "timsplit error", status

to

  print "timsplit (MMA) error", status

And run again. If the error message had the "(MMA)" text in it then it's my problem. Send me the .mma file so I can figure it out. Also, let me know your platform (ie. XP, Ubuntu 9.10, etc).

Thanks.
Logged

My online life: http://www.mellowood.ca
commanda
Newbie
*
Posts: 2


« Reply #3 on: December 05, 2009, 02:39:37 AM »

Bob,

Thanks for the quick response.
I changed line 80 like you asked and got this;
timsplit (MMA) error 256

and it is definitely failing on the "DRUM" track.

The only reference I can find anywhere to the word "drum" on its own is in stdpats.mma.

I'll email you the relevant files.

I've got a perl script, midi_splitter.pl (on the net somewhere) which works fine, but doesn't split the drum tracks out.
Doing it manually in Rosegarden is really tedious.

As a workaround, I could write a bash script to run mma -T repeatedly, and skip the DRUM track.

Amanda
Logged
bvdp
Kara-Moon Master
****
Posts: 1437


WWW
« Reply #4 on: December 05, 2009, 04:03:00 PM »

Solved with 2 possible solutions.

1. Install the python psyco package. The lack of this caused an inacurrate error parse by timsplit.

2. Fix timsplit.py by changing line l77  from

   if txt.startswith("No data created"):

to:

    if txt.find("No data created") >= 0:

Hope this helps all of you create new and wonderful music.
Logged

My online life: http://www.mellowood.ca
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.087 seconds with 19 queries.