Skip to main content

Python bindings for the Vital synthesizer

Project description

Vita

Vita is a Python module for interacting with the Vital Synthesizer. It is not an official product related to Vital. Vita uses Effort-based versioning.

Installation

Vita is supported on Linux, macOS, and Windows. Install with pip:

pip install vita

Example

from scipy.io import wavfile
import vita

SAMPLE_RATE = 44_100

bpm = 120.0
note_dur = 1.0
render_dur = 3.0
pitch = 36  # integer
velocity = 0.7  # [0.0 to 1.0]

synth = vita.Synth()
# The initial preset is loaded by default.

synth.set_bpm(bpm)

# Let's make a custom modulation using
# the available modulation sources and destinations.
# These lists are constant.
print("potential sources:", vita.get_modulation_sources())
print("potential destinations:", vita.get_modulation_destinations())

# "lfo_1" is a potential source,
# and "filter_1_cutoff" is a potential destination.
assert synth.connect_modulation("lfo_1", "filter_1_cutoff")

controls = synth.get_controls()
controls["modulation_1_amount"].set(1.0)
controls["filter_1_on"].set(1.0)
controls["lfo_1_tempo"].set(vita.constants.SyncedFrequency.k1_16)

# Render audio to numpy array shaped (2, NUM_SAMPLES)
audio = synth.render(pitch, velocity, note_dur, render_dur)

wavfile.write("generated_preset.wav", SAMPLE_RATE, audio.T)

# Dump current state to JSON text
preset_path = "generated_preset.vital"

json_text = synth.to_json()

with open(preset_path, "w") as f:
    
    f.write(json_text)

# Load JSON text
with open(preset_path, "r") as f:
    json_text = f.read()

assert synth.load_json(json_text)

# Or load directly from file
assert synth.load_preset(preset_path)

# Load the initial preset, which also clears modulations
synth.load_init_preset()
# Or just clear modulations.
synth.clear_modulations()

Documentation is not yet automated. Please browse bindings.cpp to get a sense of how the code works.

Issues

If you find any issues with the code, report them at https://github.com/DBraun/Vita.

Code Licensing

If you are making a proprietary or closed source app and would like to use Vital's source code, contact licensing@vital.audio for non GPLv3 licensing options.

What can you do with the source

The source code is licensed under the GPLv3. If you download the source or create builds you must comply with that license.

Things you can't do with this source

  • Do not create an app and distribute it on the iOS app store. The app store is not comptabile with GPLv3 and you'll only get an exception for this if you're paying for a GPLv3 exception for Vital's source (see Code Licensing above).
  • Do not use the name "Vital", "Vital Audio", "Tytel" or "Matt Tytel" for marketing or to name any distribution of binaries built with this source. This source code does not give you rights to infringe on trademarks.
  • Do not connect to any web service at https://vital.audio, https://account.vital.audio or https://store.vital.audio from your own builds. This is against the terms of using those sites.
  • Do not distribute the presets that come with the free version of Vital. They're under a separate license that does not allow redistribution.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

vita-0.0.4-cp313-cp313-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.13Windows x86-64

vita-0.0.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

vita-0.0.4-cp313-cp313-macosx_11_0_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.13macOS 11.0+ x86-64

vita-0.0.4-cp313-cp313-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

vita-0.0.4-cp312-cp312-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.12Windows x86-64

vita-0.0.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

vita-0.0.4-cp312-cp312-macosx_11_0_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.12macOS 11.0+ x86-64

vita-0.0.4-cp312-cp312-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

vita-0.0.4-cp311-cp311-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.11Windows x86-64

vita-0.0.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

vita-0.0.4-cp311-cp311-macosx_11_0_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.11macOS 11.0+ x86-64

vita-0.0.4-cp311-cp311-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

vita-0.0.4-cp310-cp310-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.10Windows x86-64

vita-0.0.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

vita-0.0.4-cp310-cp310-macosx_11_0_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.10macOS 11.0+ x86-64

vita-0.0.4-cp310-cp310-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

vita-0.0.4-cp39-cp39-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.9Windows x86-64

vita-0.0.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

vita-0.0.4-cp39-cp39-macosx_11_0_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.9macOS 11.0+ x86-64

vita-0.0.4-cp39-cp39-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

Details for the file vita-0.0.4-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: vita-0.0.4-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for vita-0.0.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 bfb041473af70b45cae5bee435fa17a60e832ffc882be7382c4511c1ce4756e2
MD5 40f8e7abcad07442d28d9ad47e918418
BLAKE2b-256 eabfbf6a928ed425f8eaa6e4bfd36baf13aee8f97a77fa86af02bc1a3ed08a1c

See more details on using hashes here.

File details

Details for the file vita-0.0.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for vita-0.0.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4cd52cc7b545d6be2076012f5d0a8c3caa49ce140a073d092511def5519b2253
MD5 3f08044be68fb04d52b289ed7944c6f3
BLAKE2b-256 f771da7e2880ea8a00ef7184913308e2290b6a6fd1d91f53faf031bd7f95a31a

See more details on using hashes here.

File details

Details for the file vita-0.0.4-cp313-cp313-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for vita-0.0.4-cp313-cp313-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 81580183217156028b8553c72257aeee5e99aa64b73f54c011c62369808eaf12
MD5 db8377cde33aa045ec995f889b3ec90f
BLAKE2b-256 5595cfae8dbd105e33fe8ba82149ee874f672c27cf3ce05f8a4327315112e169

See more details on using hashes here.

File details

Details for the file vita-0.0.4-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for vita-0.0.4-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 38ae690cb357bcfc8de2b7f1d0ed10ac1b966d269940fe673780c618ce6f1c8f
MD5 d6b8158f8e6d8c60bdc77f3b926c9a78
BLAKE2b-256 3eebebb96d288c7d2682615f110eb61d83e3f686fbd81f0397fc41d2ddc8b453

See more details on using hashes here.

File details

Details for the file vita-0.0.4-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: vita-0.0.4-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for vita-0.0.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 986b293dbeaebbf357100da2e7411e7687d46ce531f20affdaa2a55d05012dd5
MD5 f009907fe525a2a18d20dd67f303862d
BLAKE2b-256 25e47163fc6c05be3c80599fcf545de83beccd0580e78b96273274fc45e793e6

See more details on using hashes here.

File details

Details for the file vita-0.0.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for vita-0.0.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 31da377a458b4afe4f0a65c83b79e96bb4740c0fa52da9347e4bf1e6394c8db6
MD5 83d53843593a1ee24a26b9a01d1fda30
BLAKE2b-256 c67a40d24d1a5ad8068868c093a13759e1a4e7c719a3f1263201a051589ac29b

See more details on using hashes here.

File details

Details for the file vita-0.0.4-cp312-cp312-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for vita-0.0.4-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 0e8caf662329efc1680cf39b9e62c844feaa06e8c3e19659618403fe73941eeb
MD5 cab2a333ad711a414938ba068945db47
BLAKE2b-256 bddfd14a3c4e227c126f8f2b27b12bba29c21c8f809c2384c678bd716e31a444

See more details on using hashes here.

File details

Details for the file vita-0.0.4-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for vita-0.0.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 561bba08a637ab7dce6f034cc05fb0f8a3d38307051dac789df8d607594d5a63
MD5 106e345784547bc496c159d9caf34117
BLAKE2b-256 f5958c6266e6197ad1b14a676066a8ac8625f1516394bb9fffa16eeba80cb6f9

See more details on using hashes here.

File details

Details for the file vita-0.0.4-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: vita-0.0.4-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for vita-0.0.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 db0adaba7ac224fd95c28efb7091007aed9e06d24dac77f49354c4e9aa9c4885
MD5 d3b69186435bfd55424458c5aed298e5
BLAKE2b-256 cbf9173edb7d8e28f359e3baf3eaa5360a65d2cbd94f6d54d03f97dd65f08c2f

See more details on using hashes here.

File details

Details for the file vita-0.0.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for vita-0.0.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a45c7371cad160ad2ccd858b606dd3f294157e474f689e09b7987271ea209fd1
MD5 901cdf9d93647e86a0d24437eaf3c8d3
BLAKE2b-256 26f4b742071f8d44a5f55776bca32ed3a7389f7dc1f3c761b63a72bb3a62ebed

See more details on using hashes here.

File details

Details for the file vita-0.0.4-cp311-cp311-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for vita-0.0.4-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 a5d4607ff77d7d664f4a57dd90c073c2da277722abebaa5c0f7c38baca7396a2
MD5 51f71d33527a5a4f44d7d545f73e55ba
BLAKE2b-256 c5278f1aec7d4fd5aa36914b641b19e5c535933723c746f1a26361782d7e84a4

See more details on using hashes here.

File details

Details for the file vita-0.0.4-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for vita-0.0.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c991608dacf00ea2194a01d9fd99bc5b78412c5ae43a6646983a976138c88bca
MD5 978b170fc26d91392030a03da1b40607
BLAKE2b-256 e3c8acbd389580e05fc92192579ac714b5c2359424b9562627fc90b7c40926c8

See more details on using hashes here.

File details

Details for the file vita-0.0.4-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: vita-0.0.4-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for vita-0.0.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ba0927612d54fa0c2cd31f48ea1e779351866ae22c392700327db61b7792ceca
MD5 72a0064528104ed56fdf3074b7c752fd
BLAKE2b-256 5eb2019f6bf82c305c9ff47d95c0da155f822492882f26c3572577c8c014dcf1

See more details on using hashes here.

File details

Details for the file vita-0.0.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for vita-0.0.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 33d1b8fe242e2af40f91715f74051f9604ea427a0cce8d239a9ca3dbbe7a31cb
MD5 1f9ac5e6c588bd3386392eb62a038c99
BLAKE2b-256 10bbfe8978fd42bea21dfcc5717926138136beb290028e62b2f644383ba08147

See more details on using hashes here.

File details

Details for the file vita-0.0.4-cp310-cp310-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for vita-0.0.4-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 9ae176bc9f3fbc654e760319f4893b2aad0aea7ffac1ea966654cb3f0d26ebd5
MD5 acb3b3c7e58e0630886f7b3c9cb1667e
BLAKE2b-256 a06a0097601c2bc192a6c7c6eb93cc1c8109ad8c7f2758d4d9b5a9c13f4e58b3

See more details on using hashes here.

File details

Details for the file vita-0.0.4-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for vita-0.0.4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 73bc04843546cfd595bdff54105ed4c7552ac43b23148e439e0eb9f1c8a8e4f2
MD5 27aeece9674c6d2f6316e266c0d2c006
BLAKE2b-256 52ca1265973fd2ab74692cca8d8e56e156791e50a877d27aac33c80bdfcc0672

See more details on using hashes here.

File details

Details for the file vita-0.0.4-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: vita-0.0.4-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for vita-0.0.4-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 cb45287b6b60f277dff210d9c68f01d5ab7abc4f965bbe9106a1d50c0461affd
MD5 13a8d02c7d99f67dc243f8f303da0c11
BLAKE2b-256 3dd411f10ea8cf9e284b8489a53cbc816919f52e34df487ba13c42bc1f34e684

See more details on using hashes here.

File details

Details for the file vita-0.0.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for vita-0.0.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d801e8655415c2a22d5ebb6d1efb9372a5532cc04f3d31891a613c7fea77a854
MD5 598135709ad9bd26a25a046de87fb57c
BLAKE2b-256 6a768f2ef080c852a1a9da62244b487be85cf7e00ef1310eeeed235b0715a829

See more details on using hashes here.

File details

Details for the file vita-0.0.4-cp39-cp39-macosx_11_0_x86_64.whl.

File metadata

  • Download URL: vita-0.0.4-cp39-cp39-macosx_11_0_x86_64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.9, macOS 11.0+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for vita-0.0.4-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 1f307eb0dcc5755a052bc2a5508035075e053bd922f9253fcba501b2699e3c6a
MD5 d81b1893593996a05c6f36a646b92733
BLAKE2b-256 b156de74dfb8f098e1d4aa2eddb0605b8877af64f8c4e5067501e950925fbfa4

See more details on using hashes here.

File details

Details for the file vita-0.0.4-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

  • Download URL: vita-0.0.4-cp39-cp39-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.9, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for vita-0.0.4-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 565668c22d05b55f24199c00a69b78238f9735b3d0ec08bf50416be76e28994f
MD5 14b73b2f927e480adea2b028ba1dd613
BLAKE2b-256 dbd90cb7c51e461f5f04a7474f3e8578700aefab31074ae7c35a36636fce1da0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page