Program Reference Card Script

Everything about Nord keyboards in general; which one to choose, the sound manager, sample editor, and general discussion about the sample and piano libraries.
cEgws
Posts: 45
Joined: 31 Oct 2016, 12:47
8
Your Nord Gear #1: Nord Electro 4
Has thanked: 8 times
Been thanked: 30 times
United States of America

Program Reference Card Script

Post by cEgws »

Hi there!

I have written a Python script that converts the mostly-useless HTML program list output of Nord Sound Manager into a two-dimensional program reference card. I find this useful for my (new to me) Electro 4D. I posted this script earlier this week in the Electro forum, but since I have now enhanced it to also support the Stage 2, I thought I would post again separately in the general forum. The script produces an HTML file that you need to load in a web browser and print.

Hoping that this will be generally useful and can be improved by community effort, I have created a GitHub project for it. You can get the script and more details about what it does and how to use it from the GitHub page here: http://github.com/10x10sw/NordUser/tree/master/RefCard

I'll attach sample output for the NE4D and NS2, since pictures probably describe this better than words:
Attachments
ns2_example_refcard.png
ns2_example_refcard.png (385.74 KiB) Viewed 6103 times
ne4d_example_refcard.png
ne4d_example_refcard.png (482.21 KiB) Viewed 6103 times
These users thanked the author cEgws for the post (total 5):
Mr_-G-, Arjan P, pablomastodon, Berretje, Johannes
DW-8000, DX7, ESQ-1, JD-990, MKS-70, TG77
User avatar
pablomastodon
Patch Creator
Posts: 4390
Joined: 30 Apr 2010, 20:45
15
Your Nord Gear #1: Nord Stage 3
Your Nord Gear #2: Nord Wave
Has thanked: 1895 times
Been thanked: 1968 times
Jamaica

Re: Program Reference Card Script

Post by pablomastodon »

that's really sweet! thanks alot!
bun fyah weh fyah fi bun
koloman
Patch Creator
Posts: 163
Joined: 12 Nov 2010, 13:10
14
Your Nord Gear #1: Nord Stage 2
Your Nord Gear #2: Nord Wave 2
Location: Stockerau, Austria near Capital Vienna
Has thanked: 155 times
Been thanked: 80 times
Austria

Re: Program Reference Card Script

Post by koloman »

I tried it out. In my case it showed a syntax error in the make_etc..py file from Your link(it said: print statement on line 214 needs parenthesis). I fixed it and put print (html) instead print html and now I have this nice program cards for my Nord Stage 2 for each bank. Very practical. Thank You very much.
These users thanked the author koloman for the post:
cEgws
ferranrobuste
Posts: 3
Joined: 18 Sep 2015, 20:55
9
Your Nord Gear #1: Nord Stage 2
Spain

Re: Program Reference Card Script

Post by ferranrobuste »

Sorry for my ignorance, but how can I use the script? I have the HTML program list output of Nord Sound Manager, but I don't know how to convert it...
Thank you very much!
cEgws
Posts: 45
Joined: 31 Oct 2016, 12:47
8
Your Nord Gear #1: Nord Electro 4
Has thanked: 8 times
Been thanked: 30 times
United States of America

Re: Program Reference Card Script

Post by cEgws »

You need a Python interpreter (I am using Python 2.7). This is that's installed by default on Mac OS X and (I expect) Linux. For Windows, you need to install it yourself, probably from here: https://www.python.org/downloads/windows/

Open a terminal or command window in the folder where you have saved the script, and type this to run the script (I renamed my Program List HTML to "ne4d_program.html"):
python make_nord_refcard ne4d_program.html -v -r -t "Electro 4D" -o refcard.html
There is more information on the GitHub page: https://github.com/10x10sw/NordUser/tree/master/RefCard . Also, koloman pointed out that a small change is needed for Python 3 — I'll update the code on GitHub after I confirm that this is the only thing required for Python 3.
These users thanked the author cEgws for the post:
pablomastodon
DW-8000, DX7, ESQ-1, JD-990, MKS-70, TG77
ferranrobuste
Posts: 3
Joined: 18 Sep 2015, 20:55
9
Your Nord Gear #1: Nord Stage 2
Spain

Re: Program Reference Card Script

Post by ferranrobuste »

Thank you very much! I will try it this week.
danielwolk
Posts: 23
Joined: 09 Dec 2012, 16:17
12
Your Nord Gear #1: Nord Electro 6
Your Nord Gear #2: Nord Lead A1
Has thanked: 17 times
Been thanked: 12 times
Poland

Re: Program Reference Card Script

Post by danielwolk »

cEgws ,

First version of refcard working fine on my Mac, but a new version is not working - I see this:

"make_nord_refcard.py", line 5
<!DOCTYPE html>
^
SyntaxError: invalid syntax"


what's wrong?

BTW - Could You write 'refcard' for Nord Lead A1? :thumbup:
Last edited by danielwolk on 13 Nov 2016, 19:54, edited 2 times in total.
cEgws
Posts: 45
Joined: 31 Oct 2016, 12:47
8
Your Nord Gear #1: Nord Electro 4
Has thanked: 8 times
Been thanked: 30 times
United States of America

Re: Program Reference Card Script

Post by cEgws »

It looks to me as if you might have saved the GitHub web page, not the "raw" script. Please double-check. Here's the link to the raw source for the script:
https://raw.githubusercontent.com/10x10 ... refcard.py
Please send me the program HTML file saved from NSM for the Nord Lead A1 and i'll see what I can do.
Last edited by cEgws on 14 Nov 2016, 04:25, edited 1 time in total.
These users thanked the author cEgws for the post:
pablomastodon
DW-8000, DX7, ESQ-1, JD-990, MKS-70, TG77
danielwolk
Posts: 23
Joined: 09 Dec 2012, 16:17
12
Your Nord Gear #1: Nord Electro 6
Your Nord Gear #2: Nord Lead A1
Has thanked: 17 times
Been thanked: 12 times
Poland

Re: Program Reference Card Script

Post by danielwolk »

Now working - thanks!
I sent You my A1. HTML files on private msg :idea:
These users thanked the author danielwolk for the post (total 2):
cEgws, pablomastodon
cEgws
Posts: 45
Joined: 31 Oct 2016, 12:47
8
Your Nord Gear #1: Nord Electro 4
Has thanked: 8 times
Been thanked: 30 times
United States of America

Re: Program Reference Card Script

Post by cEgws »

I have updated the script to support the program and performance exports from Nord Lead A1. The updated script is available here:
https://raw.githubusercontent.com/10x10 ... refcard.py
These users thanked the author cEgws for the post (total 3):
danielwolk, Berretje, florence
DW-8000, DX7, ESQ-1, JD-990, MKS-70, TG77
Post Reply