Problem using Instrument Samples

C
craig posted Feb 17, 22:43:

I just got SamplerBox working on my RPi3. All of the sample sets on the Instruments page work except for Mellotron MK II Flute. When I select this I get

Error in definition file, skipping line 1.

although it looks OK to me. Here is its content:

*_%notename.wav

Is there something about line endings LF or CR that could be causing this problem ?

C
craig posted Feb 18, 17:02:

Has anyone got this to work ?

K
Kees posted Feb 18, 20:30:

no problem here, perhaps copy again or create a new file?

C
craig posted Feb 20, 02:23:

It still works but complains about an error in the definition.txt file

A
AlexM posted Feb 20, 02:58:

Hey @craig - this may be because there's an empty line break in the definition.txt - if so, there shouldn't be any consequence.

Just to make double sure, you could try editing the samplerbox.py

Find:
print "Error in definition file, skipping line %s." % (i + 1)

And add to it:
print "Error in definition file, skipping line %s." % (i + 1) print "Line %d contents: %s" % (i, pattern)

This will print out the line in question. If it throws "*_%notename.wav" then we may have to have a closer look, although it would be very odd if it still works!

A
AlexM posted Feb 20, 02:59:

Oops, that last code snippet should be over 2 lines:

print "Error in definition file, skipping line %s." % (i + 1)
print "Line %d contents: %s" % (i, pattern)

...

  (not published)
  I want to post as guest
 

Post