Page 1 of 10

Nord Sample editor importing samples with loop points!!!

Posted: 07 Jun 2022, 20:34
by Eriknie
I needed a way to import a set of wav files with loop points. Looping them in the Nord Sample Editor did not work and made audible fase, volume drops.
I noticed that the .nsmpproj files are just text files. So I wrote a small program that checked all included wav files and transfers the loop points.
Just put the project file, wav files and python files in the same folder and run the python file. It even works with multiple projects files in the folder.

NEW: now also looks for .wav files in the Media folder, great for consolidated projects

I tested this with two sets of samples: no crossfades and no clicks!!!
Now you can also use other tools to loop and import them. I highly recommend the tooling from Björn Bojahr: https://www.bjoernbojahr.de/

I have no problem if someone can host this file or improves it. Please notice this in this forum.
Hope this helps others.
In the end I did this in a few hours, would be easy for Nord to include this in the sample editor.

Github for code: https://github.com/erik-nie/FixLoop-NSE

[hr]
NEW: fixloop.exe (Experimental!!):
Please try the following experimental fixloop.exe version of the python program. I'm not allowed to add .exe files in this forum, so added it to my website:

https://qsheets.eriknie.synology.me

At the bottom is a link added with fixloop.exe

You have to put this .exe into the same folder with the project and .wav files as described in the github documentation.
No other files are needed. Just double click it. Or run from the command line to show output.

Please let me know if this works, I did a few tests and seems to work identical to the fixloop.py file, without the need for installation of python.

Re: Nord Sample editor importing samples with loop points!!!

Posted: 08 Jun 2022, 00:15
by Elias
The "THANKS" function is once again proven useful.

Re: Nord Sample editor importing samples with loop points!!!

Posted: 08 Jun 2022, 08:55
by florence
Very good thanks!

Re: Nord Sample editor importing samples with loop points!!!

Posted: 08 Jun 2022, 11:55
by Ivan Jochner
Eriknie wrote:...
Just put the project file, wav files and python files in the same folder and run the python file. It even works with multiple projects files in the folder...
Is there any chance to make a step by step video/ or pdf guidance how to make it work on PC ?

( I am not much IT advanced guy so a little manual would help anyway ))

Thanks!

Re: Nord Sample editor importing samples with loop points!!!

Posted: 08 Jun 2022, 12:20
by Eriknie
Check the text in the source file, that explains many of the steps.

# install python 3
installation of Python is straight forward (make sure to include python to the Path, this is an option during installation)

# download wavfile (enhanced) #
Use link above, safe the file as wavfile.py

# pip install numpy
After installation of Python, just type this in a terminal (run cmd for windows, terminal for MacOs)

# create a simple project with Nord Sample editor: import all samples and assign them to zones if not done already

# put samples, projectfile, wavfile.py and fixloop.py in the same folder

# python fixloop.py -> will open all project files in folder and tries to find matching .wav files and transfers it's loop points and sets crossfade to 0.
In a terminal. navigate to the folder first

# a copy of the project file is written with a prefix "_"
Open this file, check the loops and generate the Sample file to upload to a Nord Synth

I hope this helps!

Re: Nord Sample editor importing samples with loop points!!!

Posted: 08 Jun 2022, 15:06
by Ivan Jochner
Eriknie wrote:Check the text in the source file, that explains many of the steps.

Ok, thanks most of it i got now, last thing i would ask :

Where can i get missing fixloop.py ?

Cheers!!!

Re: Nord Sample editor importing samples with loop points!!!

Posted: 08 Jun 2022, 15:16
by maxpiano
Ivan Jochner wrote:
Eriknie wrote:Check the text in the source file, that explains many of the steps.

Ok, thanks most of it i got now, last thing i would ask :

Where can i get missing fixloop.py ?

Cheers!!!
It is the code in the textbox in the first post Ivan

Just do a "Select all", copy and paste into a text file then save it as "fixloop.py"

Re: Nord Sample editor importing samples with loop points!!!

Posted: 09 Jun 2022, 09:05
by cookie
Amazing community !
Great work and thanks for sharing.

I'm also no Python guru and would like to know if it would be possible to have a stand-alone EXE file where we would select the directory to scan :)
In the meantime, will try to install and make tests.

Fred

Re: Nord Sample editor importing samples with loop points!!!

Posted: 09 Jun 2022, 10:31
by Eriknie
cookie wrote:Amazing community !
Great work and thanks for sharing.

I'm also no Python guru and would like to know if it would be possible to have a stand-alone EXE file where we would select the directory to scan :)
In the meantime, will try to install and make tests.

Fred
I put the file in github for maintanance. https://github.com/erik-nie/FixLoop-NSE
The benfit of python is the easy way to edit text, and runs on both MacOS and Windows.

I also update the instructions to make it easier.

Re: Nord Sample editor importing samples with loop points!!!

Posted: 09 Jun 2022, 11:16
by cookie
I understand the looping information is stored inside the WAV file itself ?
Any easy way to quickly spot which WAV files are looped or unlooped ?

Fred