enzienaudio / heavy

heavy public issue tracker and static dsp code releases
https://enzienaudio.com
ISC License
71 stars 4 forks source link

hv.vline works in patch but won't upload #251

Open RobertoHuge opened 6 years ago

RobertoHuge commented 6 years ago

I added the hv.vline object to my pd patch on Windows 7. I pasted the file to C/Program Files (x86)/Pd/extra It works fine in the patch, but won't upload and gives the following errors:

_main.pd in "_main.pd" @ (x:0, y:0): Don't know how to parse object "hv.vline". Is it an object supported by Heavy? Is it an abstraction? Have the search paths been correctly configured?

_main.pd in "_main.pd" @ (x:0, y:0): There was an error while connecting two objects. Have all objects been correctly instantiated? Have all inlets and outlets been declared?

Any ideas how I can resolve this?

sergiogranadamoreno commented 6 years ago

Abstraction such as hv.line must be included within the project (zip file). Include hv.line.pd (as well as adsr.pd) within your project folder before compressing into zip file and uploading.

https://enzienaudio.com/docs/index.html#03.uploader

diplojocus commented 6 years ago

@sergiogranadamoreno is correct, when uploading heavy will only be able to search through the files contained within the archive/zip. See the docs here for more info: https://enzienaudio.com/docs/index.html#02.getting_started#uploading

The simplest solution is to create a folder structure like this:

myPatch/
      _main.pd
      hv.line.pd  

And zip & upload the myPatch folder

RobertoHuge commented 6 years ago

I zipped the file as you said and it uploads fine now, but hv.vline isn't working in Wwise. The patch works without hv.vline, and it works with it in Pd. I attached some images if you could please check that eveything is done correctly.

image

image

diplojocus commented 6 years ago

@RobertoHuge I think the control connection to the [*~ ] on the left hand will not work correctly in heavy. Remove the [env~] section that converts it to control and leave everything at signal rate.

[osc~ ]
|           
|   [1 5, 0.02 50 5, 0 1000 5(
|   |
|   [hv.vline]
|   |     
|   |   [r MelodyVolume @hv_param 0 1 0]
|   |   |
|   |   [$1 100 (
|   |   |
|   |   [line~]
|   |   /
|   [*~ ]
|   /
[*~ ]
|
[dac~]
RobertoHuge commented 6 years ago

Thank you very much - it works perfectly now!

Perhaps it would be a good idea to change the help file for hv.vline as I copied that example.

Thanks again.

diplojocus commented 6 years ago

done https://github.com/enzienaudio/heavylib/commit/df0cf57d530e06e6015bd8e4a892a8387fb81406