Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from chr15m/master
Small fixes for Linux, sample data, test script.
- Loading branch information
Showing
3 changed files
with
43 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from pytrax import impulsetracker | ||
|
||
if __name__ == "__main__": | ||
import sys | ||
import pprint | ||
if len(sys.argv) > 1: | ||
info = impulsetracker.parse_file(sys.argv[1], with_samples=True, with_instruments=True, with_patterns=True) | ||
instruments = info.pop("instruments", None) | ||
samples = info.pop("samples", None) | ||
patterns = info.pop("patterns", None) | ||
|
||
for i in info: | ||
print i, "=>", info[i] | ||
if instruments: | ||
print len(instruments), "instruments" | ||
if samples: | ||
print len(samples), "samples" | ||
if patterns: | ||
print len(patterns), "patterns" | ||
else: | ||
print "usage:", sys.argv[0], "FILE.it" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters