joachim heintz | 8 Feb 21:15
Picon

[Cs-dev] Building instructions

hi developers -

i have built csound 5.16.1 on ubuntu linux. this ran fine; i was just
wondering if we should add some simple instructions for people building
csound from sources. i think the "INSTALL" file is out of date and
should be replaced. i have attached a suggestion.

if you find it useful, please add it (or improve and add).

as a small correction: scons -H doesn't return the defaults (as scons
says). the defaults are clearly explained when running scons -h.

best -

	joachim
INSTALLING CSOUND 5

To install prebuilt binaries for Linux on Intel, Windows, and OS X,
obtain the appropriate archive or installer
from the Files page at http://sourceforge.net/projects/csound.

To build from sources on linux, these are the steps required:
1) Get the dependencies via
sudo apt-get build-dep csound
on Debian-based systems, or a similar task on others.
2) cd to the csound source directory and execute
scons
You will probably get request to rename one of the custom-***.py (for 
(Continue reading)

Steven Yi | 8 Feb 17:48
Picon

[Cs-dev] New Parser Bug: Instr with mixed named and numbered instruments

Hi All,

I'm at a workshop and found that the new parser does not work if instr
has mixed names and numbers.  A test CSD is pasted below.

Thanks!
steven

<CsoundSynthesizer>
<CsOptions>
</CsOptions>
<CsInstruments>
sr = 44100
ksmps = 128
nchnls = 2
0dbfs  = 1

#define Clock #10#
#define TableReader #20#

instr Init, 1

     			turnon $Clock
		 		turnon $TableReader
gi_MetroTable 	ftgen 0, 0, 8, -2, 0, 1, 2, 3, 4, 5, 6, 7

endin

instr Clock, 10
     gk_Phasor phasor 1
(Continue reading)

Tito Latini | 7 Feb 21:57
Picon

[Cs-dev] old link in sourceforge summary page (5.15)


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Csound-devel mailing list
Csound-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

James Hearon | 7 Feb 21:57
Picon
Gravatar

[Cs-dev] Csound ver 5.15 odd message

Hi,
I read the dev list with interest, but usually reserve posting for the user's list.

However, I had an odd message from csound 5.15...

"This should not happen.  Contact jpff."

Strange?

Regards,
Jim Hearon
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Csound-devel mailing list
Csound-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel
Adam Puckett | 7 Feb 15:38
Picon
Gravatar

[Cs-dev] flex and bison

I see no mention of flex or bison in the main SConstruct file for
Csound. I ran flex on csound_orc.l and it printed some C code to
stdout. Does SCons recognize flex and/or Bison as Tool('lex') and
Tool('yacc') or would they have to be explicitly called flex and
bison?

Thanks,

Adam

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Csound-devel mailing list
Csound-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Adam Puckett | 7 Feb 01:49
Picon
Gravatar

[Cs-dev] makefile-win32

Hi,

I was just looking at the file "makefile-win32" in the Csound sources
and thought it would be a nice idea to use it (with necessary changes)
instead of SCons for my Csound 5.16 build. Is there any reason why I
absolutely shouldn't use this? And why does it appear not to have been
updated in years, as the library version seems to be 5.1? Also -- for
build systems developers -- this question is slightly off-topic, but
when developing a build enviroment for a program, what precautions do
you take, if any, besides the usual process of making a build as
cross-platform as possible?

Thanks,

Adam

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Csound-devel mailing list
Csound-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Andres Cabrera | 5 Feb 22:57
Picon

[Cs-dev] One for the new parser

Hi,


This line crashes the new parser:


acarr table3 aphscarr + (amod*kmodindex) + (amod2 *kmodindex2, gisine, 1, 0, 1


Of course there's a parenthesis missing, but still it is crashing. I may not have the latest git version, so please ignore if it has been fixed.


Which makes me think... The parser has been extensively tested for compatibility, but maybe it needs some more testing with wrong input?


Cheers,

Andrés


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Csound-devel mailing list
Csound-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel
Tito Latini | 5 Feb 20:57
Picon

[Cs-dev] if-then solution (after 5.16)

Here is an idea to resolve the if-then problem with k-condition and
i-rate assignments in the body. It is not necessary to modify the
semantics, the problem is easily resolvable changing the scheme of
relinking in if-then for this particular case. For the other cases
the relink is unchanged.

Example:

  if (k1 == k2) then
    ivar = ...
    ...
  else
    ivar = ...
    ...
  endif

=== becomes ===

  kgoto kcont
  if (i(k1) == i(k2)) then
    ivar = ...
    ...
  else
    ivar = ...
    ...
  endif

  kcont:
  ;; the k-rate copy doesn't contain the i-rate assignments
  if (k1 == k2) then
    ...
  else
    ...
  endif

To convert the condition from k-rate to i-rate, we can use the same
`optimize_ifun' function used in `verify_tree1' to expand i().

  parsing
    - if-then classic relink
      + save the type-state of the condition
      + save the state of the i-rate-assign existence
    - check if-then node
      + k-condition and body with i-rate assignments ?
        yes -> new relink scheme
         no -> continue

Here is a complete example:

<CsoundSynthesizer>
<CsInstruments>
instr classic  ; without relink simulation
k1 init 1
k2 init 1
icount init 1

if (k1 == k2) then
  ival = 123
  kval line 1, p3, 0
  k1 = 100
  printks "%d) kval = %f, k1 = %f\n", 0.1, icount, kval, k1
else
  ival = 321
  kval line 0, p3, 1
endif

prints  "ival = %d\n", ival
printks "> after if-then: kval = %f\n", p3/4, kval
icount = icount + 1
endin

instr relink_simulation
k1 init 1
k2 init 1
icount init 1

kgoto kcont
if (i(k1) == i(k2)) then
  ival = 123
  kval line 1, p3, 0
  k1 = 100
  printks "%d) kval = %f, k1 = %f\n", 0.1, icount, kval, k1
else
  ival = 321
  kval line 0, p3, 1
endif

kcont:
if (k1 == k2) then
  kval line 1, p3, 0
  k1 = 100
  printks "%d) kval = %f, k1 = %f\n", 0.1, icount, kval, k1
else
  kval line 0, p3, 1
endif

prints  "ival = %d\n", ival
printks "> after if-then: kval = %f\n", p3/4, kval
icount = icount + 1
endin
</CsInstruments>
<CsScore>
i "classic" 0 1
i "relink_simulation" 1 1
</CsScore>
</CsoundSynthesizer>

csound test.csd
...
new alloc for instr classic:
ival = 321
2) kval = 1.000000, k1 = 100.000000
> after if-then: kval = 1.000000
> after if-then: kval = 0.249660
> after if-then: kval = 0.499546
> after if-then: kval = 0.749660
> after if-then: kval = 0.999546
B  0.000 ..  1.000 T  1.000 TT  1.000 M:      0.0
new alloc for instr relink_simulation:
ival = 123
2) kval = 1.000000, k1 = 100.000000
> after if-then: kval = 1.000000
> after if-then: kval = 0.249660
> after if-then: kval = 0.499546
> after if-then: kval = 0.749660
> after if-then: kval = 0.999546
...

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Csound-devel mailing list
Csound-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

john ffitch | 5 Feb 19:58
Picon
Favicon

[Cs-dev] Are we ready to freeze code...

..like the weather?

More precisely, do any developers still have code rhet need to commit
before 5.16?
==John ffitch

------------------------------------------------------------------------
Notes for 5.16
==============

The major change is that the new parser is now the default.  The old
parser is still available in case of difficulty but the new has been
given extensive testing since the start of the year, including
complete restructuring of macro expansion.
  A side effect is that the runtime of most orchestras is faster,
although parsing is slower.  There are a few optimisations implemented
like constant folding in simple cases.  Line numbers and file names
are traced better than before.

Some memory leaks also fixed

New Opcodes:
    dust, dust2
    fractalnoise
    gausstrig
    gendy
    ptable, like table but does not require a power-of-2 table 
    ptable3, like table3 but does not require a power-of-2 table 
    ptablei, like tablei but does not require a power-of-2 table 
    ptablew, like tablew but does not require a power-of-2 table 

New Gen and Macros:

Modified Opcodes and Gens:
    There was a fencepost problem in tab opcode that could falsely
        report a reference out of range
    GEN15 mis-called gens 13 and 14 internally, using uninitialised values
    voice amplitude problem fixed
    fmbell now takes an optional argument to control the sustain time
    Change to pvsbasic for tab to table conversions
    poscil is now polymorhic, allowing k- or a- rate amplitude and frequency 
    p() and i() changed when argument at k-rate
    gen49 deferred now works
    gen23 now available deferred

Utilities
    Checked foe use with the new parser/in memory files

Frontends
    table access added to csoundapi~ via new get/set methods

Bugs fixed:
    Many in new parser related to precedence and multicore.
    Better diagnostics when orchestra file/csd is missing
    csd file: fix CsFileB and CsSampleB
    fix score statement 'n'
    Fixed bug in diskin2 leading to infinite loop
    Fixed bug causing crossfade noise in hrtfmove
    Fixed unlikely buffer overflows in some utilities
    Avoid segfault in midicN
    Bug in mp3in in skip=0 case fixed
    r score statement fixed with respect to macros
    sndwarp could segfault

System Changes:
    preprocessor #if #else #endin working
    #includes depth now limited rather than infinite recursion
    really turn off all displays if --nodisplays or -d is used; fixes
        bug where using -d or --nodisplays would still cause the
        winFLTK.c csoundModuleInit to setup display callbacks; bug
        caused with python TK apps and CsoundYield_FLTK being called 
    memory leak in mp3in and mp3len fixed

API:

Internal:
     Very, very, very many!  And the new parser.....

========================================================================

Undocumented opcodes as of now:

ctlchn
midipgm
pgmchn
pitchac
readks 

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Csound-devel mailing list
Csound-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Iain Duncan | 5 Feb 08:12
Picon

[Cs-dev] building on os x, how to make scons find macports libraries?

Hope someone who has built Csound from source on os x can help, I'm very new to os x ( hackintosh success, yay!)


I installed MacPorts, and have installed dependencies from there, libsndfile, liblo, etc. I can see them in /opt/local/lib.

I copied custom-osx.py to custom.py, and then edited it to (I hoped) tell it to look there:

customLIBPATH = ["/opt/local/lib"]
customSHLINKFLAGS = []
customSWIGFLAGS = []

## This seems to do nothing
if sys.platform != 'darwin':
    customSHLINKFLAGS.append('-Wl,--as-needed')
if sys.platform[:5] == 'linux':
    platform = 'linux'
    customCPPPATH.append('/usr/lib/jvm/java-1.5.0/include')
    customCPPPATH.append('/usr/lib/jvm/java-1.5.0/include/linux')
    customCCFLAGS.append('-I/usr/local/include/libcwiimote-0.4.0/libcwiimote')
elif sys.platform == 'darwin':
    platform = 'darwin'
    customCPPPATH.append('/usr/include/malloc')
    customCPPPATH.append('/opt/local/include/boost-1_32/')
    customCPPPATH.append('/usr/include/python2.6')
    customLIBPATH.append('/opt/local/lib')
    customCXXFLAGS.append('-fabi-version=0')


But, when I try to run scons I get 

Checking for C library sndfile... no
The sndfile library is required to build Csound 5.

Any one know what I'm missing?

thanks!
Iain
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Csound-devel mailing list
Csound-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel
Michael Gogins | 5 Feb 01:27
Picon

[Cs-dev] PortAudio now has WDM-KS

I'm happy to report that the next Windows installer, Csound 5.15,
which I will upload to SourceForge in the next day or so, will have a
new build of PortAudio with support for WDM-KS drivers (Windows driver
model kernel streaming drivers). These drivers do have low latency,
and most most audio hardware on even moderately new versions of
Windows works with these drivers.

Regards,
Mike

--

-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Csound-devel mailing list
Csound-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Gmane