FreeCalypso > hg > freecalypso-tools
comparison ringtools/imy/firstpass.c @ 886:0d6814238109
fc-imy2pwt: stop reading input on END:IMELODY
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 03 Apr 2022 04:00:09 +0000 |
parents | fd4c9bc7835d |
children |
comparison
equal
deleted
inserted
replaced
885:16e259bff02b | 886:0d6814238109 |
---|---|
105 copy_melody_str(linebuf + 7); | 105 copy_melody_str(linebuf + 7); |
106 prev_line_is_melody = 1; | 106 prev_line_is_melody = 1; |
107 } else if (!strncasecmp(linebuf, "BEAT:", 5)) { | 107 } else if (!strncasecmp(linebuf, "BEAT:", 5)) { |
108 process_beat_line(linebuf + 5); | 108 process_beat_line(linebuf + 5); |
109 prev_line_is_melody = 0; | 109 prev_line_is_melody = 0; |
110 } else | 110 } else if (!strncasecmp(linebuf, "END:IMELODY", 11)) |
111 break; | |
112 else | |
111 prev_line_is_melody = 0; | 113 prev_line_is_melody = 0; |
112 } | 114 } |
113 fclose(inf); | 115 fclose(inf); |
114 if (!melody_str_buf[0]) { | 116 if (!melody_str_buf[0]) { |
115 fprintf(stderr, "error: no melody found in %s\n", imy_filename); | 117 fprintf(stderr, "error: no melody found in %s\n", imy_filename); |