Happy holidays, guys!
tomekslesicki
@tomekslesicki
Best posts made by tomekslesicki
-
Simplified install - MY SOLUTION
Hey guys! You helped me a lot as I had questions on my HISE journey and there's something I'd like to share with you:
THE PROBLEM
One of the most confusing (read: support-email-generating) things about HISE is the sample folder location. Unlike Kontakt, it doesn't look into subfolders. Plus, since HISE exports the plugins as standard formats, chances are, some people who'd get the instruments might not have had any previous experience with samples or Kontakt and would be surprised that after they've installed the plugin, things don't work right away.SO...
I wrote a script (ok, two in fact - one is for Mac, the other for Windows) that solves this by auto-generating the link file and placing in the correct folder. When the user runs the installer, there's an option to locate the samples automatically. There's only one requirement for this to work - the samples need to be distributed along with the installer. I'm using Pulse to simplify the download process and it's perfect for that. The most recent versions added update functionality so if a new version of the plugin is out, it will be downloaded into the samples folder and auto-run. I'm sure there are other solutions out there but it's just something that I'm using.HOW TO: MAC
Create a text file with .sh extension (so for example, yourinstrument_locatesamples.sh) and set it as a post-install script in Whitebox Packages. I'm using it as a separate component named locate samples so that the user has an option to have it selected or not.Here's the script:
#!/bin/sh instrumentname="Blisko Cello" devname="Felt Instruments" FILE="$HOME/Library/Application Support/${devname}/${instrumentname}/LinkOSX" if test -n "$FILE"; then rm -R "$HOME/Library/Application Support/${devname}/${instrumentname}/LinkOSX" fi installer="${instrumentname}".pkg mystring=$1 echo basename: $(basename "${mystring}") echo basename + remove "${installer}": $(basename "${mystring}" "${installer}") sudo echo -n $(dirname "${mystring}") > "$HOME/Library/Application Support/${devname}/${instrumentname}/LinkOSX" exit 0
You only have to adapt the first two lines - instrumentname and devname. Export the installer as instrumentname.pkg and you should be fine.
HOW TO: WINDOWS
I'm using innosetup on Windows. Here's the whole script:[Setup] #define AppName "Blisko Cello" #define AppVersion "1.1.2" #define DevDir "Felt Instruments" PrivilegesRequired=admin AppName={#AppName} AppVersion={#AppVersion} SignTool=signtool SignedUninstaller=yes DefaultDirName={pf}\{#DevDir}\{#AppName} DefaultGroupName={#AppName} Compression=lzma2 SolidCompression=yes OutputDir=.\installerbuild ArchitecturesInstallIn64BitMode=x64 OutputBaseFilename={#AppName} LicenseFile=".\installerAssets\EULA.rtf" WizardSmallImageFile=".\installerAssets\install_logo.bmp" ; BANNER WizardImageFile=".\installerAssets\banner_blisko_cello.bmp" SetupIconFile=".\installerAssets\windows_icon.ico" DisableWelcomePage=no DisableDirPage=yes DisableProgramGroupPage=yes SetupLogging=yes ChangesAssociations=no [Types] Name: "full"; Description: "Full installation" Name: "custom"; Description: "Custom installation"; Flags: iscustom [Dirs] Name: "{app}\"; Permissions: users-modify powerusers-modify admins-modify system-modify [Components] Name: "vst2_32"; Description: "{#AppName} {#AppVersion} 32-bit VST Plugin"; Types: full custom; Name: "vst2_64"; Description: "{#AppName} {#AppVersion} 64-bit VST Plugin"; Types: full custom; Check: Is64BitInstallMode; Name: "aax"; Description: "{#AppName} {#AppVersion} AAX Plugin"; Types: full custom; Check: Is64BitInstallMode; Name: "locatesamples"; Description: "Locate samples (recommended!)"; Types: full custom; [Files] ; VST Source: "{#AppName} x86.dll"; DestDir: "{code:GetVST2Dir_32}"; Flags: ignoreversion; Components: vst2_32; Check: not Is64BitInstallMode Source: "{#AppName} x86.dll"; DestDir: "{code:GetVST2Dir_32}\{#DevDir}"; Flags: ignoreversion; Components: vst2_32; Check: Is64BitInstallMode Source: "{#AppName} x64.dll"; DestDir: "{code:GetVST2Dir_64}\{#DevDir}"; Flags: ignoreversion; Components: vst2_64; Check: Is64BitInstallMode ;BEGIN_AAX Source: "{#AppName}.aaxplugin\*"; DestDir: "{commonpf}\Common Files\Avid\Audio\Plug-Ins\{#AppName}.aaxplugin"; Flags:ignoreversion createallsubdirs recursesubdirs overwritereadonly; Components: aax ;END_AAX ; PRESETS Source: "{#AppName} UserPresets\*"; DestDir: "{userappdata}\{#DevDir}\{#AppName}\User Presets"; Flags: ignoreversion recursesubdirs; ; NOTE: Don't use "Flags: ignoreversion" on any shared system files [Icons] Name: "{group}\Uninstall {#AppName}"; Filename: "{app}\Uninstall{#AppName}.exe" [Code] var OkToCopyLog : Boolean; VST2DirPage_32: TInputDirWizardPage; VST2DirPage_64: TInputDirWizardPage; SamplesDirPage: TInputDirWizardPage; SampleLocation: String; AppDataFolder: String; function SampleFolderLocated(): boolean; begin result := FileExists(ExpandConstant('{userappdata}\{#DevDir}\{#AppName}\LinkWindows')) and (not IsComponentSelected('locatesamples')); end; procedure InitializeWizard; begin if IsWin64 then begin VST2DirPage_64 := CreateInputDirPage(wpSelectDir, 'Confirm 64-Bit VST2 Plugin Directory', '', 'Select the folder in which setup should install the 64-bit VST2 Plugin(you can choose not to install this version later), then click Next.', False, ''); VST2DirPage_64.Add(''); VST2DirPage_64.Values[0] := ExpandConstant('{reg:HKLM\SOFTWARE\VST,VSTPluginsPath|{pf}\Steinberg\VSTPlugins}\'); VST2DirPage_32 := CreateInputDirPage(wpSelectDir, 'Confirm 32-Bit VST2 Plugin Directory', '', 'Select the folder in which setup should install the 32-bit VST2 Plugin(you can choose not to install this version later), then click Next.', False, ''); VST2DirPage_32.Add(''); VST2DirPage_32.Values[0] := ExpandConstant('{reg:HKLM\SOFTWARE\WOW6432NODE\VST,VSTPluginsPath|{pf32}\Steinberg\VSTPlugins}\'); end else begin VST2DirPage_32 := CreateInputDirPage(wpSelectDir, 'Confirm 32-Bit VST2 Plugin Directory', '', 'Select the folder in which setup should install the 32-bit VST2 Plugin, then click Next.', False, ''); VST2DirPage_32.Add(''); VST2DirPage_32.Values[0] := ExpandConstant('{reg:HKLM\SOFTWARE\VST,VSTPluginsPath|{pf}\Steinberg\VSTPlugins}\'); end; end; function GetVST2Dir_32(Param: String): String; begin Result := VST2DirPage_32.Values[0] end; function GetVST2Dir_64(Param: String): String; begin Result := VST2DirPage_64.Values[0] end; function GetSamplesDir(Param: String): String; begin Result := SamplesDirPage.Values[0] end; procedure CurStepChanged(CurStep: TSetupStep); begin if CurStep = ssDone then OkToCopyLog := True; if not SampleFolderLocated() then begin SampleLocation := ExpandConstant('{src}'); AppDataFolder := ExpandConstant('{userappdata}\{#DevDir}\{#AppName}\LinkWindows'); SaveStringToFile(AppDataFolder, SampleLocation, False); end else end; procedure DeinitializeSetup(); begin if OkToCopyLog then FileCopy (ExpandConstant ('{log}'), ExpandConstant ('{app}\InstallationLogFile.log'), FALSE); RestartReplace (ExpandConstant ('{log}'), ''); end; [UninstallDelete] Type: files; Name: "{app}\InstallationLogFile.log"
What you need to edit is the first block and the banner .bmp file if you're using that.
That's all folks. Hopefully it will be useful to some of you!
-
RE: "The sample directory does not exist" - how can I change this text?
Ok, to hide the popup, you need to comment out line 130 in FrontentBar.cpp file (PresetHandler::showMessageWindow("Sample Folder changed).
The "The sample directory does not exist" text can be changed by editing line 197 in ModulatorSamplerData.cpp (the one below "sampler->getMainController()->sendOverlayMessage(DeactiveOverlay::State::CustomErrorMessage,").
Hope this helps somebody! :-)
-
RE: The definitive feature request & bug fix roadmap
Feature request:
global modulators on FX plugins!Done: https://github.com/christophhart/HISE/commit/7028aa13c3c5612bf152620a3d1a8ca94702bc8b
-
RE: The definitive feature request & bug fix roadmap
Bug report: interruptions in audio when using convolution fx plugins and Cubase’s Direct Offline Processing: https://forum.hise.audio/topic/4247/cubase-direct-offline-processing-audio-dropouts-on-fx-plugins/9
-
RE: Tell me about NKS and MPE in HISE
@ustk I’d add to that that the experience of playing an MPE keyboard is way different than your standard keys + mod wheel, so I’d recommend getting at least the Seaboard Block to get it right for the users
-
RE: HISE not building M1 architecture by default when exporting
@Casey-Kolb I think it's because AAX doesn't support M1 yet
-
RE: Packages not updating files on OSX 10.12
I figured it out and thought I'd post the solution here, maybe you'll find it useful. Create a file called YourInstrument.sh (I used SublimeText to do that but I guess you can create it in whatever really). Load it into Packages as a pre-install script. The file should contain the following code:
#!/bin/sh FILE=$HOME/Library/Audio/Plug-Ins/Components/YourFile.component if test -n "$FILE"; then rm -R $HOME/Library/Audio/Plug-Ins/Components/YourFile.component fi exit 0
If you have separate packages for AU and VST files, each can have its own .sh script with a path to the file.
What the script does is it removes the specified file before the install progresses. Done!
-
RE: The definitive feature request & bug fix roadmap
Bug: convolution reverb volume changes when sample rate is changed.
-
RE: The definitive feature request & bug fix roadmap
Bug: distortion in the high end when using IPP and convolution reverb. It’s there even when setting the minimum sample rate to 9600. Makes IPP unusable for serious work. When HISE is built without IPP, there’s no such issue.
Latest posts made by tomekslesicki
-
RE: Choose a Global Modulator with scripting
@d-healey I knew I was missing something! Thanks again!
-
Choose a Global Modulator with scripting
I have a couple of global modulators in a global mod container. Is there a way to choose which of the global modulator is used via scripting, instead of the dropdown?
HiseSnippet 1224.3oc6X0sSiaDE1NIdEv1tZoEUUU0J4K5ErsqVk.YCf5Eaf.gFUBDgyxVodwpA6iSFg8LtiGSKppOC8UpOB8QYeCZOisSrMjExFEPnsjKrxbNyYluyuyYldBtMDFxEZ5K0+h.PS+SLrtfIG1ZHgxz5rql9SL5RBkfvLgzNWDPBCAGMc8x6qHnuXEs3eu6U6P7HLaHijl1IbpMb.0mJyn1q4OQ87ZSbf9T+bytdyN1bVKtGOBwSYipZAD6yHCfCIpoUxP6GIgC0z+NipurA.artqiCY80cZznwVatU8spQbqVmbZsFaUes5ar1la3po+n8bnRtvRRjPnldkc3NWXMj+arjM3DZH8TOPMnllEtyIjay8bTpn5+ZsFR8b5MxPEpgKZuLyV4Dy1JFcoNzwzyLeOMlgYlD4Mf5kJBuxEfWs2G7l.jzyAoJIPZYCKaAMPlwQgmGazggdSWB5mxCkj4po+2Fs33DXxW3SNCZKvAiEX0FUq9bS7yy9A2HlsjxYlb1gbIbDa0mszerzhK8mKYdYVttSjmZaDbOOPLQ1pPCw0I3prH+SAwyMOm3EAimHp9EsoOZ5ro1IZctIxYcXT4QAP53rfhZSvCnkZ1v+85N6RjDkSIkFNu.PHoJ3nuKbNlRj3hVzXWH7LIO.SJth+Cib3NQdDYwvIURWJCzdTvGpbTrPp7h7IkWNFqx62dTcho.STamR3trQOpzd3jwaoIfWzpcai2zL1O0XOWWvVlA1JFs+4qM8btCkERfxWYruG+ThWlADiaPTAIoreSJayw7MGOgZWSA4+YZKHGL0Ej0KOuJXU41pF5cZ78meEWS3bMi7C3PoR4f7xIP1v3f1GkZAw+kAxZ2LH2gFv8HBE+1B3Wi.lcN9KzTEszIKXq4e07MjyAWtvOsz13U5.X.tm4ozG7C3XaF14CLs74b4PJaPwXvUZd.mGrGifVDm7KRugjP0gKgfrvxfKaedRKKs731mkmYmALt.RNvJO8VQgRt+HEHtUCKIDDWFW+WLZT+E3O2uW8cqV3m0OZ9LVa90.PooNhUEIL1kqhItmeFRBhGGDdOAw2TJ1Z2coXOs4CoXOjh8wWJ1L2XY4+e1X4w7HIlb2kHEzeGKMcXjuE14lMfHgw.ObiLzKoxESFWUMNNgFXNwC9W7WJyZpw5oLqMhYd08IIp6iMrvFQiezfXk8KhGapxzM2GvVTuZCG25sodjsD299BBKLfGVXgs.eZeNSY0yH95PPE7erJRpPQKNQLQVu6UsQkbhxXQjQh3Pxs84QrBUNub6ySYmeEuxWt4+Qae02pWycFapdwQ30h5G3A6wNG7v60Gi2OCuHuKIxSNhZw.9tbFOXHmQKbb7w.lnNX.HxqGST41VJI4OlcklGCd.Iej8217.LhjHPaFbc1k45SLMQe2WZj.WSUVp48pmpH891ec5s1T.7DhfRXxw5QrJXN5ZcwpP5T9ft9DVQoOIFqpIbNHjISNlXRSOXGP303YP76ZEObt4qd3Tz62mhdWrG9DaA+s1IOVpJ+cgXJndyheN8EM5pFaVSK9ATy6i8wSEdqscwk5JBt1rJ35ypf0mUAe4rJXiYUvMlUA27lETcn81Q3soRRY0z51aujRJ5iuDmdYs+C.9MAMM
-
RE: Envelope exclamation mark?
@Christoph-Hart thank you! My UX brain actually though it's a message I should read, that maybe would appear on hover yet it didn't ;-)
-
Envelope exclamation mark?
What does the exclamation mark by a scriptnode envelope mean?
-
Trigger a chord on a single key press
Hi guys! I'm lookng for a way to trigger some extra notes on a single key press. Say I have a sine generator, and play a note C3. I would also like to add C#3 and D3. I guess I should use the onNoteOn thing with hte MIDI processor? How can I achieve this?
Thank you!
-
MIDI transpose on a Scriptnode Synthesizer
I'm trying to get the Scriptnode Synthesizer respond to a MIDI transpose module inserted earlier in the chain, but I can't get it to work. Here's a very minimal snippet - just a file player, and a built-in MIDI transpose script on the cotainer:
HiseSnippet 1532.3oc6XssaaaCFlJ1LmZZ2ZQJv1c9hcQ6PQfkywhcQcNXuZr5Ti3zfdW.qDcLQjH0jnShaw.1E68XuJ6UYuA8MX6mhRQTNJI1F8DVmCPf3OI0+G+9OR0IT3PihDgHqEObX.EYsDt6Ptr+t8ILNp0dHq6gaShjzvJZQ6LLfDEQcQVVk9Yk.qEJih+89msCwivcnYhPniDLG5KX9LYlzN0+ElmWShK8PluwpWqdKGAeWgmX.fmR3pn.hyojSn6STKaFL54jn9HqeDuZMxpq9zMqVy1t2l0Vumsc0MV0tGYMaXlZDZsmViXSUHY1FtLoHrqjHoQHqx6HbG1su3btVAGwhXuwipFXi5BZVKtovyUcDUOi1sOyysSJQEgPV3NYzVIMssLtMykco7L56aimnR1NLIPqYxCuR4fm80AuBfjkAjJqgz8wccBYAxrYT34N3VbvZ1i.riITzqEY8W3cEvB3xU7ImRaFBCtbCOZipUeRE3eO9m5Mf6HYBdEAeegj9R9id7huawEV72VrxnS0qWgyoTSnvyiFV3zJWivaZiOhOv+MzvmT4Lh2.5kKDN944zYGON0QepMVnf2hyjuLflLNyovt.K.Jg1fmdUq8HRhxnjHCVW.MTxTvwZO5YPHg1Ds.dOZzoRQ.DTbE6G34HbG3Qj4cmTAcIS.7QNanxPwiXxglAki5iU954ipEFBT3ocLg68wcXRm9Ei2YJ.u.q8wFuIQr2E2nWOpiLCrkwMe8MFd9AGJyeM4bWJNHDFQCs+PjwMXry3ZU5lxHUcBxH8QKIY4wKf9VxgWPBykvGFR3QAhHpNW4cMDj2Nbo7s8EC3FL8V0+fkS++SI70XJgERghtfbbhgXn78IR3BWZkXwzHVzm7DDo8I7D7jTSdj1vviWLQd+Zi0eyzo0rewj5w9yZbcowy47VxNtPJF6x7C7n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Ml1Mt4ztwst8Mp95HIIVUc4.I26zPWj2pAm.WFHtsCz+BfFpN5H
I tried both with single samples, and sample maps and unfortunately, the synth module is ignoring the transpose value.
The file_player doesn't seem to respond to incoming midi notes' pitch.
Is it a bug @Christoph-Hart or am I missing something extremely obvious?
Thank you!
-
RE: Record audio of unknown length
@ustk sorry for being a little bit immune to wisdom, but I got stuck at this part:
and modify the loop in reconstructFromAccumulator() to account for this 2D array
Thank you for your patience!