NESS Python library
This library presents some Python classes for building score and instrument files for the NESS physical models.
Below are a some tutorials that give you an idea of how to use these tools for engaging with the Ness models.
Tutorials
Net1 Tutorials
- Raw score and instrument files 1
- Multiple Strings
- Adding Connections
- Troubleshooting
- Using the Python nesstools with Net1 part 1
- Using the Python nesstools with Net1 part 2
NESS Guitar score tutorials:
- Score basics: pluck a couple of a strings
- Plucking with more control
- Putting fingers on frets with playFret()
- Putting fingers in positions with playPosition()
- Playing harmonics with playHarmonic()
- A more advanced look at harmonics
- Creating scores from tab and tab files
- Creating scores from MIDI files
- Creating structures with iteration #1
- Creating structures with iteration #2
- (coming soon) NESS Recipe #1: a simple plucking piece
- (coming soon) NESS Recipe #2: a fretless just intonation tuning piece
NESS Guitar instrument tutorials:
- Instrument basics: defaultGuitar
- Instrument basics: more tempaltes
- Tuning / Microtones
- Customising string parameters #1
- Customising string parameters #2
- Customising fretboard parameters
- Adding Preparations
How to run these files
- Clone or download this repository
- Open a terminal and cd to the folder.
- type
python gtr_score_1_basic_plucks.py
(or whichever file you wish to run) - This should create both a score file and an instrument file in the “ness_files_to_process” folder
- Process these files with the NESS Code framework
- This is again a command line process, where
-s
and-i
flags need to be set for the input score and instrument files,- e.g.
./ness-framework -s /path/to/scorefile.m -i /path/to/instrumentfile.m
- e.g.
Example implementation
from nesstools import guitar
stringCount = 6
my_guitar = guitar.StringInstrument(stringCount)
my_guitar.defaultGuitar()
my_guitar.write("basic_guitar.m")
my_score = guitar.GuitarScore(10, stringCount)
my_score.pluck( 1, 0.5 )
my_score.playFret( 1, 1.0, 5 )
my_score.playFret( 1, 1.5, 7 )
my_score.pluck( 1, 2 )
my_score.write("basic_score.m")
Currently includes classes for the brass, guitar and soundboard models