Atelier Hplank
Home | Audio Visual Compositions | HPKComposer | Tools | News
HPKComposer \ HPKComposerAV \ Tutorial | prev | next

4 - Working with Sound
  • Select the Sound item in the tree view to display the Sound Editor.
sound editor


The sound editor view lets build the sound using Csound opcodes. The toolbar has the following action buttons (from left to right):
  • Add a new Sound Effect
  • Add a new 3D Object
  • Add a new Light
  • Load and replace the sound with another one saved as a file. The file extension is .mxt. Any reference to this sound parameters will be deleted.
  • Save this sound as a file. The file extension is .mxt.
  • Clipbaord functions are non applicable
The Sound Editor works with several views:.
  • The Parameters view is used to define parameters that may change during the performance. Sound parameters are Csound variable operating at k-rate.
  • The Tables view is used to add, delete or change GEN functions that are required by the Csound opcodes of this sound.
  • The Source view lets define the core of the sound, using the Csound opcodes.
  • The Audio Effect Routing view assigned source audio signals with Sound Effects.
  • The Control Signal Routing view declares k-rate variable defined in the source that you want to be visible to the 3D objects, for synchronization purpose.


  • Select the source view and type "asig osc" in the text field. When you stop typing a syntax assist window is displayed
  • Select "oscili" in the list (double-click)
  • Then double-click on "oscili"i. A dialog box is displayed to edit the different parameter fields of the opcode.
assist1


  • Enter 1 for the amplitude, 400 for the frequency. The initial phase is optional (the parameter type i-time is not surrending by parenthesis).
  • The combox-bos list is empty. This is normal as no table as been defined.
  • Just validate your change.
dialog assist


The ?? symbol ndicates that the opcode syntax has a blank parameter. Thus don't even try to play the performance!
  • Click on the tab Tables.
assist ??


  • The Tables view has several buttons in the tollbar for managing the tables. From left to right
    • create default table
    • create a table from an existing one
    • replace the current selected table item by an existing one
    • cut the current selected table item to the clipboard
    • copy the current selected table item to the clipboard
    • paste the current table that is in the clipboard
  • Create a Table by selecting the second button from the left and navigate to select a sin table
table selection


  • a new table is created and can be edited following the Csound rules. Table numbering must begin 10 to avoid conflict with internally generated tables.
table creation


  • Go in the source view, double-click on oscili and select in the waveform combo-box the table number 10
assist table completed


The opcode is now correct. The table is not presented by the correct Csound syntax in the source. The notation that must be used (f<x> where x is the table number) is required for re-numbering the table during the generation process. assist completed


This very simple instrument is ready! asig is a reserved keyword used for the direct output.
To test if the syntax is correct, as wel as the sound level, clik on the Generate Sound File button in the Eclipse Toolbar. CsoundAV is started in verbose mode, and you i can check the compilation result, and listen to the result by clicking on the Play button (a sound player must set in the HPKC for CsoundAV preferences).

Next step is to add a Sound Effect next