View Single Post
Old 12-29-2013, 09:15 AM   #24
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,677
Default

@jnif, I tried your modified example, on a text file that starts:
35 Acoustic Bass Drum
36 Bass Drum 1
37 Side Stick
38 Acoustic Snare
str_len = file_string(handle,notename_str); is always returning a length of 0, so not much else does anything. The handle is a positive integer value so the file is definitely being found.

Is this the right interpretation of %-3{notename_note}d\t%{notename_name}s*
%-3{notename_note}d . . . . . . . put up to 3 characters into notename_note as an integer
\t . . . . . . . . . . . . . . . . . . . . . 'tab' to the next set of characters
%{notename_name}s* . . . . . . put the rest of the line into notename_note

.
__________________
DarkStar ... interesting, if true. . . . Inspired by ...

Last edited by DarkStar; 12-29-2013 at 10:49 AM.
DarkStar is offline   Reply With Quote