Skip to content
This repository has been archived by the owner on Mar 16, 2021. It is now read-only.

Nothing but zeros in WAV file #281

Open
johnkolen opened this issue Sep 6, 2018 · 4 comments
Open

Nothing but zeros in WAV file #281

johnkolen opened this issue Sep 6, 2018 · 4 comments

Comments

@johnkolen
Copy link

Not sure if this is the right place to ask, but here goes.

I'm trying to use mrswatson to access Kontakt 5 Player VST. Everything seems to work, except that the file is full of zeros after the header. I tried it with vstxsynth, and it was able to render the c-scale WAV properly. Below is the trace for the failed session.
Running on Mac OS X 10.13.6

$ main/mrswatson64 -p Kontakt\ 5,Snap1 -m ../vendor/AudioTestData/midi/c-scale.mid -o c-scale.wav --tempo 120 --plugin-root ../vendor/AudioTestData/vst/Mac\ OS\ X/
- 00000000 000000 Setting tempo to 25
- 00000000 000000 MrsWatson version 0.9.8 initialized, build 20180829
- 00000000 000000 Opening preset 'Snap1' for plugin
- 00000000 000004 Plugin 'Kontakt 5' is of type VST2.x
- 00000000 000004 Opening VST2.x plugin 'Kontakt 5'
- 00000000 001384 Plugin 'NiO5' asked if host canDo 'receiveVstTimeInfo' (unimplemented)
- 00000000 001384 Plugin 'NiO5' asked if host canDo 'asyncProcessing' (unimplemented)
- 00000000 001384 Plugin 'NiO5' asked if host canDo 'supplyIdle' (unimplemented)
- 00000000 001384 Plugin 'NiO5' asked if host canDo 'supportShell' (unimplemented)
- 00000000 001384 Plugin 'NiO5' asked if host canDo 'editFile' (unimplemented)
- 00000000 001488 Plugin 'NiO5' asked if host canDo 'NIMKPIVendorSpecificCallbacks' (unimplemented)
- 00000000 001491 Number of channels = 64. Will only arrange 8 speakers.
- 00000000 001493 Starting processing input source
- 00088064 001501 Reached end of MIDI track
- 00088576 001502 Total processing time 1sec, approximate breakdown:
- 00088576 001502   MrsWatson Initialization: 1sec (99.4%)
- 00088576 001502   MrsWatson Input Source: 0ms (0.0%)
- 00088576 001502   MrsWatson Output Source: 3ms (0.2%)
- 00088576 001502   Kontakt 5 Audio Processing: 4ms (0.3%)
- 00088576 001502   Kontakt 5 MIDI Processing: 0ms (0.0%)
- 00088576 001502 Read 35 MIDI events from ../vendor/AudioTestData/midi/c-scale.mid
- 00088576 001502 Wrote 88576 frames to c-scale.wav
- 00088576 001502 Shutting down
- 00088576 001502 Closing plugin 'Kontakt 5'
- 00088576 002037 Goodbye!
$ od c-scale.wav 
0000000    044522  043106  064044  000005  040527  042526  066546  020164
0000020    000020  000000  000001  000002  126104  000000  130420  000002
0000040    000004  000020  060544  060564  064000  000005  000000  000000
0000060    000000  000000  000000  000000  000000  000000  000000  000000
*
1264040    000000  000000  000000  000000  000000  000000                
1264054
@freedmand
Copy link

I'm also having this issue, using the Vienna Imperial VST plugin. Maybe it's not waiting for the samples to get loaded in both cases?

@czfandyslash
Copy link

same here, hoping for the correct solution.

@HongzeTian
Copy link

Not sure if this is the right place to ask, but here goes.

I'm trying to use mrswatson to access Kontakt 5 Player VST. Everything seems to work, except that the file is full of zeros after the header. I tried it with vstxsynth, and it was able to render the c-scale WAV properly. Below is the trace for the failed session.
Running on Mac OS X 10.13.6

$ main/mrswatson64 -p Kontakt\ 5,Snap1 -m ../vendor/AudioTestData/midi/c-scale.mid -o c-scale.wav --tempo 120 --plugin-root ../vendor/AudioTestData/vst/Mac\ OS\ X/
- 00000000 000000 Setting tempo to 25
- 00000000 000000 MrsWatson version 0.9.8 initialized, build 20180829
- 00000000 000000 Opening preset 'Snap1' for plugin
- 00000000 000004 Plugin 'Kontakt 5' is of type VST2.x
- 00000000 000004 Opening VST2.x plugin 'Kontakt 5'
- 00000000 001384 Plugin 'NiO5' asked if host canDo 'receiveVstTimeInfo' (unimplemented)
- 00000000 001384 Plugin 'NiO5' asked if host canDo 'asyncProcessing' (unimplemented)
- 00000000 001384 Plugin 'NiO5' asked if host canDo 'supplyIdle' (unimplemented)
- 00000000 001384 Plugin 'NiO5' asked if host canDo 'supportShell' (unimplemented)
- 00000000 001384 Plugin 'NiO5' asked if host canDo 'editFile' (unimplemented)
- 00000000 001488 Plugin 'NiO5' asked if host canDo 'NIMKPIVendorSpecificCallbacks' (unimplemented)
- 00000000 001491 Number of channels = 64. Will only arrange 8 speakers.
- 00000000 001493 Starting processing input source
- 00088064 001501 Reached end of MIDI track
- 00088576 001502 Total processing time 1sec, approximate breakdown:
- 00088576 001502   MrsWatson Initialization: 1sec (99.4%)
- 00088576 001502   MrsWatson Input Source: 0ms (0.0%)
- 00088576 001502   MrsWatson Output Source: 3ms (0.2%)
- 00088576 001502   Kontakt 5 Audio Processing: 4ms (0.3%)
- 00088576 001502   Kontakt 5 MIDI Processing: 0ms (0.0%)
- 00088576 001502 Read 35 MIDI events from ../vendor/AudioTestData/midi/c-scale.mid
- 00088576 001502 Wrote 88576 frames to c-scale.wav
- 00088576 001502 Shutting down
- 00088576 001502 Closing plugin 'Kontakt 5'
- 00088576 002037 Goodbye!
$ od c-scale.wav 
0000000    044522  043106  064044  000005  040527  042526  066546  020164
0000020    000020  000000  000001  000002  126104  000000  130420  000002
0000040    000004  000020  060544  060564  064000  000005  000000  000000
0000060    000000  000000  000000  000000  000000  000000  000000  000000
*
1264040    000000  000000  000000  000000  000000  000000                
1264054

Does anyone have some reply?

@williamsharkey
Copy link
Contributor

williamsharkey commented Mar 21, 2019

I was not able to get the Kontakt 5 Player libraries to install, so I could not exactly recreate your issue.

However I was able to install Kontact 6 player and I solved what seems to be the same issue, so I think it will work for you:.

Essentially, Kontact is not exposing the presets as simple names you can address like "Snap1". You need to open the preset you desire in a DAW, then save the state of that plugin as a .FXP. Then, you can load the FXP.

FLStudio has this ability so I will show you how to export the FXP:

  1. Load Kontact in FLStudio,
  2. Select the library and preset you wish to use.
  3. Hit the COG icon
  4. hit the save preset button to save it in cubase fxp format.

If you save the preset to c:\presets\snap1.fxp you can run mrswatson like:

mrswatson64 -p "Kontakt\ 5,c:\presets\snap1.fxp" ...

You may need minor adjustments as you are using mac (IE - you may need a different program to save the fxp).

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants