Kara-MoonKara-Moon
Pages: [1]
  Print  
Author Topic: timsplit.py bails half way through  (Read 281 times)
commanda
Newbie
*
Posts: 2


« on: December 05, 2009, 12:46:43 am »

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
Sr. Member
****
Posts: 300


WWW
« Reply #1 on: December 05, 2009, 02: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
bvdp
Sr. Member
****
Posts: 300


WWW
« Reply #2 on: December 05, 2009, 02: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
commanda
Newbie
*
Posts: 2


« Reply #3 on: December 05, 2009, 03: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
Sr. Member
****
Posts: 300


WWW
« Reply #4 on: December 05, 2009, 05: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
Pages: [1]
  Print  
 
Jump to:  

Theme by webtechnica.com.
Credit Counseling - Credit Consolidation - click fraud protection - Phoenix Landscaping

Page created in 0.298 seconds with 21 queries.