Commit Graph
100 Commits
Author SHA1 Message Date
[email protected] 960bddfae0 refactor(vm): use vm.GoSynther{}.Synth instead of vm.Synth
vm.Synth was used only in a few places, reduce the number of
exported functions. Also, if we ever add some global configuration
to GoSynther e.g. samplerate, we have a mechanism to do so, instead
of the Synth function.
2023-10-19 12:52:05 +03:00
[email protected] 7675121a78 style(vm): group public/private member types and rename privates 2023-10-19 12:47:38 +03:00
[email protected] e28891abd5 refactor: move ConstructPatterns into compiler package
ConstructPatterns was never used except during compilation, so it
makes sense to have it closer where it is used. We could consider
making it even private function, as the pattern table construction
is quite specific to how compiler compiles and probably not that
reusable elsewhere.
2023-10-19 12:38:18 +03:00
[email protected] e010b2da9d docs: improve go doc comments for vm package 2023-10-19 11:54:12 +03:00
[email protected] 98a73795c7 style: move Play and Synth to audio.go
With this grouping, everything that deals with AudioBuffers is in
Audio. song.go and patch.go do not know anything about AudioBuffers
or Synths.
2023-10-19 11:32:30 +03:00
[email protected] 5bbec75120 refactor: rename sointu.Render as AudioBuffer.Fill
The Render name misleading as it did not do the same thing as normal
Synth.Render, because it disregarded time limits. Conceptually, as
the function modifies the state of the synth, it would be better to
be synth.Fill(audioBuffer), but we cannot define methods on
interfaces; therefore, it is audioBuffer.Fill(synth) now.
2023-10-19 11:14:44 +03:00
[email protected] ff4155a08e fix(tracker): notify player when recovery file is loaded 2023-10-19 10:59:07 +03:00
[email protected] 15a340317f docs: add go doc comments to 4klang conversion functions 2023-10-19 10:52:52 +03:00
[email protected] b6815f70cb feat: remove unreleased parameter from Play function
The VMs now release all envelopes by default, so this mechanism was
useless / did not actually start them as unreleased even when you
thought they did.
2023-10-19 10:42:20 +03:00
[email protected] 9f7bbce761 refactor(vm): rename Encode to NewBytecode 2023-10-19 10:32:34 +03:00
[email protected] 01bf409929 refactor(vm): rename Commands/Values to Opcodes/Operands
The commands and values were not very good names to what the
byte sequences actually are: opcodes and their operands. In
many other places, we were already calling the byte in the Command
stream as Opcode, so a logical name for a sequence of these is
Opcodes. Values is such a generic name that it's not immediately
clear that this sequence is related to the opcodes. Operands is not
perfect but clearly suggests that this sequence is related to
the Opcodes.
2023-10-18 19:53:47 +03:00
[email protected] 87604dd92e refactor(vm): rename BytePatch to Bytecode 2023-10-18 19:12:34 +03:00
[email protected] ccd283d2ea docs: update comments 2023-10-18 18:34:14 +03:00
[email protected] 0a67129a0c refactor!: rename SynthService to Synther and related types
The -er suffix is more idiomatic for single method interfaces, and
the interface is not doing much more than converting the patch to a
synth. Names were updated throughout the project to reflect this
change. In particular, the "Service" in SynthService was not telling
anything helpful.
2023-10-18 17:32:13 +03:00
[email protected] e4a2ed9f32 style: group types into fewer, logical files 2023-10-18 15:02:25 +03:00
[email protected] 0187cc66ec refactor: move Wav and Raw methods as members of AudioBuffer 2023-10-18 14:40:16 +03:00
[email protected] 33625c6f40 fix(vm): stereo delay flipped taps for right and left channel 2023-10-18 13:54:26 +03:00
[email protected] 38e9007bf8 refactor: use [][2] as audio buffers, instead of []float32
Throughout sointu, we assume stereo audiobuffers, but were passing
around []float32. This had several issues, including len(buf)/2 and
numSamples*2 type of length conversion in many places. Also, it
caused one bug in a test case, causing it to succeed when it should
have not (the test had +-1 when it should have had +-2). This
refactoring makes it impossible to have odd length buffer issues.
2023-10-18 13:51:02 +03:00
[email protected] bb0d4d6800 docs(tracker): update comments 2023-10-17 20:31:57 +03:00
[email protected] b97d269cc4 build: update Gio to v0.3.1 2023-10-17 20:30:06 +03:00
[email protected] 192b31917a docs: update README.md 2023-10-17 15:07:31 +03:00
[email protected] 462faf5f4e feat: save recovery data to disk and/or DAW project 2023-10-17 10:26:36 +03:00
[email protected] 97a1b2f766 perf(tracker): use json recovery files instead of yaml for less garbage
The yaml marshaling and umarshaling seems to allocate a lot of memory. When saving the recovery file, the memory use jumped up by hundreds of megabytes. Switch to using json marshaling for the recovery file, as it does waste memory so badly. Binary marshaling was also an option, but its nice in emergency situations that the user can glance the recovery file and perhaps, with some effort, recover stuff from it. Json is good enough for manual recovery during emergency situations.
2023-10-15 11:11:26 +03:00
[email protected] 4899b027ff perf(tracker/gioui): use pointer receivers in numericupdown to avoid garbage 2023-10-15 09:49:30 +03:00
[email protected] 1a256b1f01 feat(cmd/sointu-track): add command line parameters for cpu & mem profiling 2023-10-15 09:07:22 +03:00
[email protected] b455ef0f3c feat(tracker): add reverb presets for delay unit
The options are stereo, left and right. Similar to oscillator sample settings, if you tamper with these, it starts to show "custom". Used some of the generic features of go1.18, so had to update go.mod to require go1.18.
2023-10-14 14:58:38 +03:00
[email protected] f5eeabe5f3 fix(tracker/gioui): respawn window if VSTI accidentally closes it 2023-10-08 16:27:17 +03:00
[email protected] 61ebd89da0 fix(tracker): set PrevUndoType to "" when undoing and redoing 2023-10-08 15:59:33 +03:00
[email protected] e5691d670a feat(vm): add frequency modulation for oscillators
Closes #105
2023-10-07 21:48:03 +03:00
[email protected] 12dd3dada0 refactor(vm): rewrote BytePatch Encode to use a builder struct
(cherry picked from commit fdf119e50ce62619f508cc423c2ebaa000a1d540)
2023-10-07 14:07:47 +03:00
[email protected] 8c8232f76e feat(vm)!: implement cross-instrument modulation of all voices
The "auto" was misleading, as it meant self modulation when targetting a unit within instrument itself and just voice 0 when cross-instrument modulation. This feature changes the "auto" meaning "self" for instruments self-modulating, and "all" voices for cross-instrument modulations. "all" is implemented by compiling a single send into multiple repeated sends, with only the last popping the stack (if necessary).

Closes #107
2023-10-07 14:07:39 +03:00
[email protected] 7ee43f199a fix(tracker): make sure undo & redo stack never grow beyond limit 2023-10-02 15:43:52 +03:00
[email protected] 048de55f00 fix(tracker): save recovery in GUI thread and reduce recovery size&frequency 2023-10-02 13:40:26 +03:00
[email protected] 905637eee3 update README.md: add links to prods using sointu 2023-10-02 11:15:15 +03:00
[email protected] ce7c8a0d3e feat(tracker): add menu to load instrument presets
The presets are embedded in the executable, so there's no additional files.

Closes #91
2023-10-01 18:54:50 +03:00
[email protected] b65d11cbb7 update CHANGELOG.md and README.md 2023-10-01 15:07:50 +03:00
[email protected] df2605fddd feat(tracker): save recovery file regularly & load it on startup 2023-10-01 14:45:45 +03:00
[email protected] 12f15d1066 fix(tracker/gioui): make VSTI close event wait that gioui actually quit 2023-10-01 12:42:12 +03:00
[email protected] e3c7d2cba4 fix(cmd/sointu-vsti): use different name and ID for native vsti plugin 2023-09-24 17:39:30 +03:00
[email protected] 545f32bcc3 release v0.2.0 and add automated releases to CI 2023-09-24 13:11:00 +03:00
[email protected] ee2c83e2cb update CHANGELOG.md 2023-09-24 11:20:53 +03:00
[email protected] 00850c8001 code/text formatting and cleaning up whitespace 2023-09-24 10:47:54 +03:00
[email protected] f35f948118 fix(vm/compiler/templates/wasm): add support for mono out
Adds also a test case to make sure mono out also works.
2023-09-24 10:27:34 +03:00
[email protected] 7df8103bf9 fix(vm): change crush resolution to bits (closes #79)
BREAKING CHANGE: The problem with crush was that it had very few usable values. This changes the crush to map the value nonlinearly, so the crush resolution is bits. Still the upper portion of the values is not very usable (bits 12-24 i.e. hardly any crushing), but at least the lower portion is usable. But now crush resolution has slightly different meaning.
2023-09-23 21:23:05 +03:00
[email protected] 1ac2ad3c75 fix(vm/compiler): invert the logic of the release flag in the voices (closes #102)
This makes all envelopes released by default, instead of attacking. Add also test to demonstrate the buggy behaviour.
2023-09-23 15:56:46 +03:00
[email protected] 20b0598a57 upgrade gioui to latest version 2023-09-23 14:43:09 +03:00
[email protected] 14e548c4c1 fix(tracker/gioui): CopyUnitBtn marshaled unit incorrectly 2023-09-20 14:57:23 +03:00
[email protected] c692ff0f16 build: allow optional use of Crinkler when linking examples 2023-09-02 22:33:48 +03:00
[email protected] b028fea59a build: make targets properly rebuild when templates or compiler changed 2023-09-02 20:14:52 +03:00
[email protected] 231e055faf fix(gioui/tracker): song files were not truncated when opened for writing (closes #103) 2023-09-02 14:32:23 +03:00
[email protected] de3f4d987f fix(tracker/gioui): hitting enter/return to focus on the instrument name editor 2023-09-01 22:51:59 +03:00
[email protected] 8c59ea1b4c add ParamHintString for loadval.value showing range [-1,1] 2023-09-01 22:01:53 +03:00
[email protected] 98fedd0ed2 make ParamHintString show range [-1,1] for send.amount 2023-09-01 21:54:55 +03:00
[email protected] a439a4fa48 update README.md: credits
(cherry picked from commit 1d89dd0e99fdfce01fbee47e1d409118c4fa1ce2)
2023-08-31 13:06:45 +03:00
[email protected] 29a33a154b update README.md: add prod link for "Physics Girl St." 2023-08-29 09:27:04 +03:00
[email protected] aba8ff2c85 CI: don't build examples as part of tests 2023-08-29 09:10:57 +03:00
[email protected] dff484739c feat(sointu): add better ParamHintString for in and aux unit channels 2023-08-28 23:10:11 +03:00
[email protected] 7dd2c246a0 feat(vm): add support for gm.dls samples in the go virtual machine (closes #75) 2023-08-28 22:44:37 +03:00
[email protected] 6ec06c760a CI: add builds for linux and macos (closes #82) 2023-08-28 16:26:15 +03:00
[email protected] 4135286ed0 update README.md 2023-08-28 13:42:14 +03:00
[email protected] c7d79035ce fix: copying and pasting units messed selection and Ctrl-C actually cut 2023-08-27 16:05:11 +03:00
[email protected] 568aa1d76d update README.md 2023-08-27 14:54:14 +03:00
[email protected] d82d151f49 fix: native synth building on go 1.21
go v1.21 is more strict about giving methods to C.structs and was complaining about "cannot define new methods on non-local type *C.Synth". The solution was a local type alias: type BridgeSynth C.Synth
2023-08-27 12:24:06 +03:00
[email protected] c040bdedee fix: when just saving a file, open the file in write mode (fixes #99) 2023-08-27 11:29:55 +03:00
[email protected] a0bcac3904 fix: check that MIDI triggered instrument is within patch limits (#98) 2023-08-27 11:10:54 +03:00
[email protected] 33221b5203 fix: upgrade to latest gioui (closes #97)
Latest gioui has the fix that enter key up event alone does not trigger a button
2023-08-27 10:59:11 +03:00
[email protected] 94926c5596 update README.md - add link to | by epoqe 2023-08-19 20:21:52 +03:00
[email protected] 61776f397a feat: add ability to select & move multiple units (closes #71) 2023-07-21 00:39:45 +03:00
[email protected] 5884a8d195 feat(tracker/gioui): add tooltips
Currently, only iconbtns and numeric updowns have tooltips. Closes #84
2023-07-19 22:31:29 +03:00
[email protected] cafb43f8c8 feat(tracker/gioui): add ability to scroll parameter values (closes #92) 2023-07-18 23:28:20 +03:00
[email protected] 5a2e87982e feat(tracker): add ability to copy, cut and paste units 2023-07-18 17:17:50 +03:00
[email protected] 338529012a update README.md 2023-07-18 16:22:43 +03:00
[email protected] ffb2f18c68 fix(cmd/sointu-vsti): upgrade vst2 package & request tempo properly from host 2023-07-18 10:37:32 +03:00
[email protected] ccc8dc906f fix(tracker): guard for malformed songs in SetSong 2023-07-17 23:51:14 +03:00
[email protected] c421748db9 fix: if fetching BPM from vsti host fails, keep the previous BPM as defined by the user 2023-07-17 23:26:11 +03:00
[email protected] 9db6ecb3da CI: build sointu-compile.exe as a part of the binaries 2023-07-08 16:44:00 +03:00
[email protected] 8ffe4a70dd feat(vm/compiler): embed templates to executable 2023-07-08 16:39:41 +03:00
[email protected] d2ddba3944 fix(tracker/gioui): mouse clicks passed through the new unit button. closes #93 2023-07-08 16:07:17 +03:00
[email protected] 7af7d4332d change: do not respect polyphony when importing 4klang patches
Using polyphony 2 gave errors: 16 instruments with polyphony 2 + 1 global was a total of 33 voices and gave errors when sointu compiling. User will set anyway polyphony as needed for every instrument, like 1 for most instruments, so just use NumVoices 1 always.
2023-07-08 15:22:18 +03:00
[email protected] 9d6ca519a2 rename examples/fourklang to examples/fourklang_patches 2023-07-08 15:15:24 +03:00
[email protected] 3da62179e4 refactor(tracker/gioui): use gioui/x/explorer instead of home made file explorer 2023-07-08 15:12:45 +03:00
[email protected] 8c4f7ee61f refactor(tracker/gioui): update gioui to newer version 2023-07-08 11:57:19 +03:00
[email protected] f5980ecb79 Update README.md 2023-07-07 01:44:01 +03:00
[email protected] 63fc3d0d08 Update CHANGELOG.md 2023-07-07 01:09:29 +03:00
[email protected] 9ef271f1a8 fix(tracker/gioui): display voice states crashed if somehow patch had more than 32 voices 2023-07-06 23:49:40 +03:00
[email protected] cd00067da8 change(tracker): default delay to use BPM-tracking and make reverb similar to 4klang 2023-07-06 23:49:40 +03:00
[email protected] 248ba483c6 feat: add ability to import 4klang patches and instruments 2023-07-06 23:47:55 +03:00
[email protected] c06ac6ea5e update README.md 2023-05-15 21:22:27 +03:00
[email protected] a3dcc829c0 CI: rename binaries-zip to sointu-binaries-<hash>.zip 2023-05-13 18:43:20 +03:00
[email protected] e7dbb0289c CI: add action to build artifacts 2023-05-13 18:05:52 +03:00
[email protected] 9efddd673d fix(tracker): when reassigning unit IDs, update send targets. fixes instrument loading 2023-05-13 17:56:13 +03:00
[email protected] cd700ed954 feat!: implement vsti, along with various refactorings and api changes for it
The RPC and sync library mechanisms were removed for now; they never really worked and contained several obvious bugs. Need to consider if syncs are useful at all during the compose time, or just used during intro.
2023-05-13 17:56:13 +03:00
[email protected] 70080c2b9d fix(templates/wasm): $WRK was modified by stereo oscillators, messing up all modulations targeting units after the unit
add also tests to make sure we don't mess it up again
2023-04-06 15:03:16 +03:00
[email protected] 61c2e980a2 fix(templates/wasm): anyfunc should be funcref nowadays in .wat 2023-04-06 14:50:18 +03:00
[email protected] 6129076e97 upgrade ilammy/setup-nasm to v1.4.0 and wat2wasm to v1.0.29
wat2wasm doesn't support --enable-bulk-memory anymore, presumably because it is part of the standard nowadays
2023-04-06 14:50:18 +03:00
Veikko SariolaandGitHub e73365b980 Merge pull request #87 from kendfss/master
fix: instrumenteditor starting expansion state
2022-04-07 14:06:58 +03:00
vsariola 1a5251dbf6 refactor(sointu): change the name of AudioSink into AudioOutput
The interface is never used as anything else as Output so trying to generalize as something more vague like Sink made no sense.
2021-08-30 23:11:33 +03:00
vsariola eda48491e2 refactor(sointu): move engineeringTime helper function to the file where it is actually used 2021-08-30 22:27:38 +03:00
vsariola a8f8911f03 refactor(sointu): Change the signature of Play to accept SynthService instead of Synth
This is more logical as every single use of Play started with compiling the patch of a song with a SynthService.
2021-08-30 22:24:42 +03:00
vsariola a9b90c4db8 style: add comments to the public methods and members in the root package. 2021-08-30 20:34:56 +03:00