Giter Site home page Giter Site logo

psobot / k2000 Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 0.0 102 KB

A Python package for working with the Kurzweil K2000/K2500/K2600 family of synthesizers.

License: MIT License

Python 100.00%
kurzweil kurzweil-k2000 midi sysex patch-management patches synthesizer

k2000's Introduction

k2000

Python package

A Python package for communicating with the Kurzweil K2000/K2500/K2600 family of synthesizers over MIDI.

Screenshot

To use, just:

pip install k2000

Make sure you're on Python 3.8, 3.9, or 3.10. (Other versions may work too.)

What?

Back in the 1990s, Kurzweil Music Systems - founded by Raymond Kurzweil and Stevie Wonder - released an extremely advanced line of synthesizers known as the K2 series. Compared to the music technology we have today in the mid-2020s, these synthesizers were... actually not bad. They still hold up today.

This library contains code for communicating with an attached K2-series synthesizer (specifically the K2000, K2500, or K2600) via MIDI, implementing its entire SysEx protocol, allowing for full interface control and full object read and write support.

How?

A quick-start example:

from k2000.client import K2500Client

c = K2500Client("My MIDI Interface Name")
assert c.is_connected

print(c.get_screen_text())
# ProgramMode    Xpose:0ST   <>Channel:1  
#                     998 Choral Sleigh   
# KeyMap Info         999 Pad Nine        
#  Grand Piano          1 Acoustic Piano  
#  Syn Piano            2 Stage Piano     
#                       3 BriteGrand      
#                       4 ClassicPiano&Vox
# Octav- Octav+ Panic  Sample Chan-  Chan+

# Navigate around the UI a bit:
c.up()
c.down()
c.number(125)
c.enter()

# Access object data:
name, program_data = c.programs[125]
print(f"Got {len(program_data):,} bytes of program data for Program \"{name}\".")
# prints: Got 586 bytes of program data for Program "Fast Solo Tenor".

# Dump all effect data, for example:
for i, value in c.effects.items():
    if value is None:
        continue
    effect_name, effect_data = value
    do_something_with(effect_name, effect_data)

# Take screenshots!
image = c.screenshot()
image.save("screenshot.png")
# Which gives...

K2000 Screenshot

Why?

I was doing some reverse engineering and this library helped make that reverse engineering easier.

More generally, though; you could use this library if you wanted to:

  • Load or dump programs (or setups, or effects, etc) from your K2-series synth via Python.
  • Control the interface of your K2-series synth (i.e. push buttons, read the text and graphics) over MIDI
  • Take screenshots of your K2's display over MIDI
  • Automate the control of your K2 for scraping, testing, etc.

Ironically, this library doesn't support sending MIDI notes; just the SysEx commands to control specific functions of the K2.

License

MIT License

Copyright (c) 2019-2023 Peter Sobot

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

k2000's People

Contributors

psobot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

k2000's Issues

any update on this?

is there any update on this? the project seems cool and i just wanted to know if you are still working on it or is it canned or not

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.