@pro-gram/flux 0.0.0-stage → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/LICENSE +23 -0
  2. package/NOTICE.txt +33 -0
  3. package/README.md +125 -2
  4. package/bin/flux.js +29 -0
  5. package/dependencies.json +15 -0
  6. package/package.json +60 -6
  7. package/payload/DrumBuddy-Setup.exe +4 -0
  8. package/scripts/install.js +60 -0
  9. package/scripts/version.js +12 -0
  10. package/source/AssetBootstrap.cs +49 -0
  11. package/source/Audio Decoders.txt +230 -0
  12. package/source/Audio.cs +453 -0
  13. package/source/AudioDeviceSettings.cs +126 -0
  14. package/source/AudioEndpointWatcher.cs +25 -0
  15. package/source/AudioInputs.cs +50 -0
  16. package/source/AudioOutputs.cs +307 -0
  17. package/source/AudioWorkspace.cs +72 -0
  18. package/source/BrandArtwork.cs +71 -0
  19. package/source/Build Instructions.txt +65 -0
  20. package/source/Build.ps1 +135 -0
  21. package/source/ControlMode.cs +687 -0
  22. package/source/ControlTests.cs +88 -0
  23. package/source/ConversionFormats.cs +59 -0
  24. package/source/ConversionTests.cs +66 -0
  25. package/source/DockablePane.cs +95 -0
  26. package/source/DriverSetup.cs +28 -0
  27. package/source/EditorCompactLayout.cs +36 -0
  28. package/source/EditorPlaybackTests.cs +87 -0
  29. package/source/EditorSelectionTests.cs +73 -0
  30. package/source/EditorToolInteractions.cs +227 -0
  31. package/source/EditorTools.cs +78 -0
  32. package/source/EditorToolsTests.cs +93 -0
  33. package/source/EditorView.cs +798 -0
  34. package/source/Fetch-Dependencies.ps1 +15 -0
  35. package/source/FloatRecording.cs +99 -0
  36. package/source/FloatRecordingTests.cs +170 -0
  37. package/source/Flux-Logo.png +0 -0
  38. package/source/Flux-Mark.svg +49 -0
  39. package/source/FluxTempo Logo Prompt.txt +3 -0
  40. package/source/FluxTempo-Mark.svg +49 -0
  41. package/source/HomeView.cs +32 -0
  42. package/source/InterfaceSettings.cs +225 -0
  43. package/source/InterfaceTests.cs +172 -0
  44. package/source/LICENSE.txt +23 -0
  45. package/source/Logo Prompt.txt +16 -0
  46. package/source/Main.cs +787 -0
  47. package/source/Main.xaml +289 -0
  48. package/source/MediaPlayerView.cs +274 -0
  49. package/source/MidiControl.cs +113 -0
  50. package/source/MidiPerformance.cs +125 -0
  51. package/source/Mixer.cs +280 -0
  52. package/source/NativeMemory.cs +165 -0
  53. package/source/PanelFeedback.cs +75 -0
  54. package/source/PlaybackTests.cs +141 -0
  55. package/source/Quick Start.txt +96 -0
  56. package/source/SelfTest.cs +78 -0
  57. package/source/SettingsWindow.cs +209 -0
  58. package/source/Setup.cs +196 -0
  59. package/source/Setup.xaml +28 -0
  60. package/source/ShellStyles.xaml +99 -0
  61. package/source/TempoGrid.cs +95 -0
  62. package/source/TempoGridTests.cs +108 -0
  63. package/source/Third Party Notices.txt +33 -0
  64. package/source/Timeline.cs +268 -0
  65. package/source/TimelineGestures.cs +57 -0
  66. package/source/TimelineZoom.cs +21 -0
  67. package/source/Uninstall.cs +69 -0
  68. package/source/WaveformDetail.cs +104 -0
  69. package/source/WindowsAudioPlayer.cs +137 -0
  70. package/source/WorkspaceTests.cs +202 -0
  71. package/source/ZoomTests.cs +95 -0
  72. package/source/app.manifest +7 -0
  73. package/source/brand-archive/Drum-Buddy-Black-Hair.png +0 -0
  74. package/source/dependency-lock.json +62 -0
  75. package/source/fluxtempo-mark.png +0 -0
  76. package/source/logo.png +0 -0
  77. package/source/r16-panel.png +0 -0
  78. package/source/references/R16 Format Research.txt +16 -0
  79. package/test/package.test.js +55 -0
@@ -0,0 +1,62 @@
1
+ [
2
+ {
3
+ "File": "naudio.wasapi.zip",
4
+ "Url": "https://api.nuget.org/v3-flatcontainer/naudio.wasapi/2.2.1/naudio.wasapi.2.2.1.nupkg",
5
+ "ExtractTo": "naudio.wasapi",
6
+ "Sha256": "C8396B8DBAB86A2619EDFD9158BEAF18C21CB86677099B5594950FD8651B9D1A"
7
+ },
8
+ {
9
+ "File": "naudio.core.zip",
10
+ "Url": "https://api.nuget.org/v3-flatcontainer/naudio.core/2.2.1/naudio.core.2.2.1.nupkg",
11
+ "ExtractTo": "naudio.core",
12
+ "Sha256": "794645DBFD30E4880663D52D9D9224D55C301FA54228FF623C95D572C7887347"
13
+ },
14
+ {
15
+ "File": "naudio.asio.zip",
16
+ "Url": "https://api.nuget.org/v3-flatcontainer/naudio.asio/2.2.1/naudio.asio.2.2.1.nupkg",
17
+ "ExtractTo": "naudio.asio",
18
+ "Sha256": "AAE0C06C2559FBF56BD4B4F4A5CB9AEEF158E35C7B536699E4E6B8012A683577"
19
+ },
20
+ {
21
+ "File": "naudio.winmm.zip",
22
+ "Url": "https://api.nuget.org/v3-flatcontainer/naudio.winmm/2.2.1/naudio.winmm.2.2.1.nupkg",
23
+ "ExtractTo": "naudio.winmm",
24
+ "Sha256": "48DA978D715F219489C050EE8C32C64F80FF73718EBA237EBCBC636BA5902BE3"
25
+ },
26
+ {
27
+ "File": "microsoft.win32.registry.zip",
28
+ "Url": "https://api.nuget.org/v3-flatcontainer/microsoft.win32.registry/4.7.0/microsoft.win32.registry.4.7.0.nupkg",
29
+ "ExtractTo": "microsoft.win32.registry",
30
+ "Sha256": "FA3582C11A94FC9FE32DD40A0C59BDDD67C80EB0CC5CC27DF3851EBDA40CA22F"
31
+ },
32
+ {
33
+ "File": "system.security.accesscontrol.zip",
34
+ "Url": "https://api.nuget.org/v3-flatcontainer/system.security.accesscontrol/4.7.0/system.security.accesscontrol.4.7.0.nupkg",
35
+ "ExtractTo": "system.security.accesscontrol",
36
+ "Sha256": "FFD6423C81CB761CEAECE5B850AA93B11D0EF778E31DDE81446D524708071358"
37
+ },
38
+ {
39
+ "File": "system.security.principal.windows.zip",
40
+ "Url": "https://api.nuget.org/v3-flatcontainer/system.security.principal.windows/4.7.0/system.security.principal.windows.4.7.0.nupkg",
41
+ "ExtractTo": "system.security.principal.windows",
42
+ "Sha256": "AD604CD94F0AAB7AC475A6B530F65260E3A46ED306816C81F223EBA48AA6A6A8"
43
+ },
44
+ {
45
+ "File": "ffmpeg.zip",
46
+ "Url": "https://www.gyan.dev/ffmpeg/builds/packages/ffmpeg-9.0.2-essentials_build.zip",
47
+ "ExtractTo": "ffmpeg",
48
+ "Sha256": "60F467265B1E312373DBCD92200C2618A74850F98D3D078E94296BB3FA2047BA"
49
+ },
50
+ {
51
+ "File": "NAudio-license.txt",
52
+ "Url": "https://raw.githubusercontent.com/naudio/NAudio/v2.2.1/license.txt",
53
+ "ExtractTo": null,
54
+ "Sha256": "303E01786B271EB464B3F43D18A375F2F17D37BC708A37C2FDF45B289FB5BFAA"
55
+ },
56
+ {
57
+ "File": "r16-panel.png",
58
+ "Url": "https://zoomcorp.com/media/original_images/R16_list_0.png",
59
+ "ExtractTo": null,
60
+ "Sha256": "5564FA622F101DC27EA402C399C5B9B1E1E039B8771DAF40B185DAB9772ADF38"
61
+ }
62
+ ]
Binary file
Binary file
Binary file
@@ -0,0 +1,16 @@
1
+ The independent C# R16 project container reader/writer uses file-format facts
2
+ researched with zoomrlib 1.1.0 by Remy Taymans and Glenn Boysko:
3
+ https://gitlab.com/remytms/zoomrlib
4
+ https://pypi.org/project/zoomrlib/1.1.0/
5
+
6
+ Its unchanged binary fixture projects were used for round-trip verification.
7
+ The upstream Python implementation is not bundled or linked into Drum Buddy.
8
+ Download the upstream release's tests/data to reproduce the native fixture tests:
9
+ DrumBuddy.exe --control-self-test TEST_OUTPUT PATH_TO_TEST_FIXTURES
10
+
11
+ Mackie control protocol reference (message assignments only):
12
+ https://github.com/justinfrankel/reaper-sdk/blob/main/reaper-plugins/reaper_csurf/csurf_mcu.cpp
13
+
14
+ Official R16 manuals:
15
+ https://zoomcorp.com/media/documents/E_R16_.pdf
16
+ https://zoomcorp.com/media/documents/E_R16_AIF_.pdf
@@ -0,0 +1,55 @@
1
+ 'use strict';
2
+ const test = require('node:test');
3
+ const assert = require('node:assert/strict');
4
+ const fs = require('node:fs/promises');
5
+ const path = require('node:path');
6
+ const os = require('node:os');
7
+ const crypto = require('node:crypto');
8
+ const { execFileSync } = require('node:child_process');
9
+ const { hash, cached, installRoot } = require('../scripts/install');
10
+ const pkg = require('../package.json');
11
+ const dependencies = require('../dependencies.json');
12
+ test('launcher identifies the packaged release and update command', () => {
13
+ assert.equal(pkg.name, '@pro-gram/flux');
14
+ assert.equal(pkg.bin.flux, 'bin/flux.js');
15
+ const launcher = path.resolve(__dirname, '../bin/flux.js');
16
+ assert.equal(execFileSync(process.execPath, [launcher, '--version'], { encoding: 'utf8' }).trim(), pkg.version);
17
+ const help = execFileSync(process.execPath, [launcher, '--help'], { encoding: 'utf8' });
18
+ assert.match(help, /npm\.cmd install -g @pro-gram\/flux@latest/);
19
+ assert.match(help, /32-bit float/);
20
+ assert.match(help, /16\/24-bit PCM/);
21
+ assert.match(help, /16-track timeline Editor/);
22
+ assert.match(help, /PCM\/float Media Player/);
23
+ assert.match(help, /--audio-diagnostics/);
24
+ assert.match(help, /Backspace/);
25
+ assert.match(help, /1\/256/);
26
+ assert.doesNotMatch(help, /--allow-scripts/);
27
+ });
28
+ test('an older Flux launcher preserves a newer installed release', () => {
29
+ const { needsUpdate } = require('../scripts/version');
30
+ assert.equal(needsUpdate('1.4.1', '1.5.0'), true);
31
+ assert.equal(needsUpdate('1.5.0\n', '1.5.0'), false);
32
+ assert.equal(needsUpdate('1.6.0', '1.5.0'), false);
33
+ assert.equal(needsUpdate(null, '1.5.0'), true);
34
+ assert.equal(needsUpdate('bad marker', '1.5.0'), true);
35
+ });
36
+ test('public installer matches its package integrity pin', async () => {
37
+ assert.equal(await hash(path.resolve(__dirname, '../payload/DrumBuddy-Setup.exe')), dependencies.installerSha256);
38
+ });
39
+ test('verified cached data works without a network call', async () => {
40
+ const folder = await fs.mkdtemp(path.join(os.tmpdir(), 'drumbuddy-cache-check-'));
41
+ const contents = Buffer.from('Drum Buddy cache test');
42
+ const file = path.join(folder, 'fixture');
43
+ await fs.writeFile(file, contents);
44
+ const asset = { file: 'fixture', url: 'https://invalid.example/', sha256: crypto.createHash('sha256').update(contents).digest('hex') };
45
+ assert.equal(await cached(asset, folder), file);
46
+ assert.equal(await hash(file), asset.sha256);
47
+ assert.equal(await cached({ ...asset, sha256: '0'.repeat(64), alternateSha256: asset.sha256 }, folder), file);
48
+ });
49
+ test('dependencies are pinned to official HTTPS sources and exclude driver downloads', () => {
50
+ assert.equal(new URL(dependencies.ffmpeg.url).host, 'www.gyan.dev');
51
+ assert.equal(new URL(dependencies.panel.url).host, 'zoomcorp.com');
52
+ assert.match(dependencies.ffmpeg.sha256, /^[a-f0-9]{64}$/);
53
+ assert.equal(dependencies.driver, undefined);
54
+ assert.equal(installRoot(), path.join(process.env.LOCALAPPDATA, 'Programs', 'DrumBuddy'));
55
+ });