Csound Csound-dev Csound-tekno Search About

Image Opcodes with P Fields Error

Date2016-04-29 16:53
FromEmmett Palaima
SubjectImage Opcodes with P Fields Error
Hi, I am working on an app with Csound iOS that uses Csound's image opcodes, and was looking to pass different image files in via score events. To this end I would need to give the imageload a p-field argument for which image to load. I did this and it returns the following error:

error:  Unable to find opcode entry for 'imageload' with matching argument types:

Found: i imageload p

Is it impossible to use p-fields with imageload? And if so how else might I go about passing an image to Csound from iOS? 

Here is a modified version of the imageload csd I made to test using p-fields with imageload, any help is appreciated:


<CsoundSynthesizer>

<CsOptions>

; Select audio/midi flags here according to platform

-n ;no sound output

</CsOptions>

<CsInstruments>


sr=48000

ksmps=1

nchnls=2


; this test .csd copies image.png into a new file 'imageout.png'


giimage1 init


instr 1

giimage1 imageload p4

giimagew, giimageh imagesize giimage1

giimage2 imagecreate giimagew,giimageh


kndx = 0

kx_ linseg 0, p3, 1

;print imagewidth and imageheigth of image.png

prints "imagewidth = %f pixels, imageheigth = %f pixels\\n", giimagew, giimageh


myloop:

ky_ = kndx/(giimageh)

kr_, kg_, kb_ imagegetpixel giimage1, kx_, ky_

imagesetpixel giimage2, kx_, ky_, kr_, kg_, kb_

loop_lt kndx, 0.5, giimageh, myloop

endin


instr 2


imagesave giimage2, "imageout.png"

endin


instr 3

imagefree giimage1

imagefree giimage2

endin


</CsInstruments>

<CsScore>


i1 1 1 "abyss.jpg"

i2 2 1

i3 3 1

e


</CsScore>

</CsoundSynthesizer>


Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-04-29 17:48
FromVictor Lazzarini
SubjectRe: Image Opcodes with P Fields Error
image opcodes are not available on ios as far as I know

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 29 Apr 2016, at 16:53, Emmett Palaima <epalaima@BERKLEE.EDU> wrote:

Hi, I am working on an app with Csound iOS that uses Csound's image opcodes, and was looking to pass different image files in via score events. To this end I would need to give the imageload a p-field argument for which image to load. I did this and it returns the following error:

error:  Unable to find opcode entry for 'imageload' with matching argument types:

Found: i imageload p

Is it impossible to use p-fields with imageload? And if so how else might I go about passing an image to Csound from iOS? 

Here is a modified version of the imageload csd I made to test using p-fields with imageload, any help is appreciated:


<CsoundSynthesizer>

<CsOptions>

; Select audio/midi flags here according to platform

-n ;no sound output

</CsOptions>

<CsInstruments>


sr=48000

ksmps=1

nchnls=2


; this test .csd copies image.png into a new file 'imageout.png'


giimage1 init


instr 1

giimage1 imageload p4

giimagew, giimageh imagesize giimage1

giimage2 imagecreate giimagew,giimageh


kndx = 0

kx_ linseg 0, p3, 1

;print imagewidth and imageheigth of image.png

prints "imagewidth = %f pixels, imageheigth = %f pixels\\n", giimagew, giimageh


myloop:

ky_ = kndx/(giimageh)

kr_, kg_, kb_ imagegetpixel giimage1, kx_, ky_

imagesetpixel giimage2, kx_, ky_, kr_, kg_, kb_

loop_lt kndx, 0.5, giimageh, myloop

endin


instr 2


imagesave giimage2, "imageout.png"

endin


instr 3

imagefree giimage1

imagefree giimage2

endin


</CsInstruments>

<CsScore>


i1 1 1 "abyss.jpg"

i2 2 1

i3 3 1

e


</CsScore>

</CsoundSynthesizer>


Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-04-29 18:14
From"Dr. Richard Boulanger"
SubjectRe: Image Opcodes with P Fields Error
It would be great to add them to the latest release.  Especially considering that all iOS devices have cameras and capture images.  Possible?  Hope so.  

R

On Fri, Apr 29, 2016 at 12:48 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
image opcodes are not available on ios as far as I know

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 29 Apr 2016, at 16:53, Emmett Palaima <epalaima@BERKLEE.EDU> wrote:

Hi, I am working on an app with Csound iOS that uses Csound's image opcodes, and was looking to pass different image files in via score events. To this end I would need to give the imageload a p-field argument for which image to load. I did this and it returns the following error:

error:  Unable to find opcode entry for 'imageload' with matching argument types:

Found: i imageload p

Is it impossible to use p-fields with imageload? And if so how else might I go about passing an image to Csound from iOS? 

Here is a modified version of the imageload csd I made to test using p-fields with imageload, any help is appreciated:


<CsoundSynthesizer>

<CsOptions>

; Select audio/midi flags here according to platform

-n ;no sound output

</CsOptions>

<CsInstruments>


sr=48000

ksmps=1

nchnls=2


; this test .csd copies image.png into a new file 'imageout.png'


giimage1 init


instr 1

giimage1 imageload p4

giimagew, giimageh imagesize giimage1

giimage2 imagecreate giimagew,giimageh


kndx = 0

kx_ linseg 0, p3, 1

;print imagewidth and imageheigth of image.png

prints "imagewidth = %f pixels, imageheigth = %f pixels\\n", giimagew, giimageh


myloop:

ky_ = kndx/(giimageh)

kr_, kg_, kb_ imagegetpixel giimage1, kx_, ky_

imagesetpixel giimage2, kx_, ky_, kr_, kg_, kb_

loop_lt kndx, 0.5, giimageh, myloop

endin


instr 2


imagesave giimage2, "imageout.png"

endin


instr 3

imagefree giimage1

imagefree giimage2

endin


</CsInstruments>

<CsScore>


i1 1 1 "abyss.jpg"

i2 2 1

i3 3 1

e


</CsScore>

</CsoundSynthesizer>


Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here



--
_____________________________________________
Dr. Richard Boulanger
Professor of Electronic Production and Design
Professional Writing and Music Technology Division
Berklee College of Music
______________________________________________
President of Boulanger Labs - http://boulangerlabs.com
Author & Editor of The Csound Book - http://mitpress.mit.edu/books/csound-book
Author & Editor of The Audio Programming Book - http://mitpress.mit.edu/books/audio-programming-book
______________________________________________
about: http://www.boulangerlabs.com/about/richardboulanger/
about: http://www.csounds.com/community/developers/dr-richard-boulanger/
music: http://www.csounds.com/community/developers/dr-richard-boulanger/dr-richard-boulanger-music/

______________________________________________
email: rboulanger@berklee.edu
facebook: https://www.facebook.com/richard.boulanger.58
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-04-29 19:36
Fromjpff
SubjectRe: Image Opcodes with P Fields Error
Is tere a library for png fies we can use?  Both legally and practically?

On Fri, 29 Apr 2016, Dr. Richard Boulanger wrote:

> It would be great to add them to the latest release.  Especially considering
> that all iOS devices have cameras and capture images.  Possible?  Hope so.  
> R
> 
> On Fri, Apr 29, 2016 at 12:48 PM, Victor Lazzarini 
> wrote:
>       image opcodes are not available on ios as far as I know
>
>       Victor LazzariniDean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
> 
> On 29 Apr 2016, at 16:53, Emmett Palaima  wrote:
>
>       Hi, I am working on an app with Csound iOS that uses
>       Csound's image opcodes, and was looking to pass different
>       image files in via score events. To this end I would need to
>       give the imageload a p-field argument for which image to
>       load. I did this and it returns the following error:
>
>       error:  Unable to find opcode entry for 'imageload' with
>       matching argument types:
>
>       Found: i imageload p
>
>       Is it impossible to use p-fields with imageload? And if so
>       how else might I go about passing an image to Csound from
>       iOS? 
>
>       Here is a modified version of the imageload csd I made to
>       test using p-fields with imageload, any help is appreciated:
> 
>
>       
>
>       
>
>       ; Select audio/midi flags here according to platform
>
>       -n ;no sound output
>
>       
>
>       
> 
>
>       sr=48000
>
>       ksmps=1
>
>       nchnls=2
> 
>
>       ; this test .csd copies image.png into a new file
>       'imageout.png'
> 
>
>       giimage1 init
> 
>
>       instr 1
>
>       giimage1 imageload p4
>
>       giimagew, giimageh imagesize giimage1
>
>       giimage2 imagecreate giimagew,giimageh
> 
>
>       kndx = 0
>
>       kx_ linseg 0, p3, 1
>
>       ;print imagewidth and imageheigth of image.png
>
>       prints "imagewidth = %f pixels, imageheigth = %f pixels\\n",
>       giimagew, giimageh
> 
>
>       myloop:
>
>       ky_ = kndx/(giimageh)
>
>       kr_, kg_, kb_ imagegetpixel giimage1, kx_, ky_
>
>       imagesetpixel giimage2, kx_, ky_, kr_, kg_, kb_
>
>       loop_lt kndx, 0.5, giimageh, myloop
>
>       endin
> 
>
>       instr 2
> 
>
>       imagesave giimage2, "imageout.png"
>
>       endin
> 
>
>       instr 3
>
>       imagefree giimage1
>
>       imagefree giimage2
>
>       endin
> 
>
>       
>
>       
> 
>
>       i1 1 1 "abyss.jpg"
>
>       i2 2 1
>
>       i3 3 1
>
>       e
> 
>
>       
>
>       
> 
> 
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports
> to https://github.com/csound/csound/issues Discussions of bugs and
> features can be posted here
> 
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features
> can be posted here
> 
> 
> 
> 
> --
> _____________________________________________
> Dr. Richard Boulanger
> Professor of Electronic Production and Design
> Professional Writing and Music Technology Division
> Berklee College of Music
> ______________________________________________
> President of Boulanger Labs - http://boulangerlabs.com
> Author & Editor of The Csound Book - http://mitpress.mit.edu/books/csound-book
> Author & Editor of The Audio Programming Book -
> http://mitpress.mit.edu/books/audio-programming-book
> ______________________________________________
> about: http://www.boulangerlabs.com/about/richardboulanger/
> about: http://www.csounds.com/community/developers/dr-richard-boulanger/
> music:http://www.csounds.com/community/developers/dr-richard-boulanger/dr-richard-b
> oulanger-music/
> ______________________________________________
> email: rboulanger@berklee.edu
> facebook: https://www.facebook.com/richard.boulanger.58
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here
>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-04-29 20:02
FromVictor Lazzarini
SubjectRe: Image Opcodes with P Fields Error
That would introduce a dependency to the Csound library. I am against it. 

The problem is that iOS does not support plugins. If it did, then we could provide 
these and other opcodes.


Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 29 Apr 2016, at 19:36, jpff  wrote:
> 
> Is tere a library for png fies we can use?  Both legally and practically?
> 
>> On Fri, 29 Apr 2016, Dr. Richard Boulanger wrote:
>> 
>> It would be great to add them to the latest release.  Especially considering
>> that all iOS devices have cameras and capture images.  Possible?  Hope so.  
>> R
>> On Fri, Apr 29, 2016 at 12:48 PM, Victor Lazzarini 
>> wrote:
>>      image opcodes are not available on ios as far as I know
>> 
>>      Victor LazzariniDean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>> On 29 Apr 2016, at 16:53, Emmett Palaima  wrote:
>> 
>>      Hi, I am working on an app with Csound iOS that uses
>>      Csound's image opcodes, and was looking to pass different
>>      image files in via score events. To this end I would need to
>>      give the imageload a p-field argument for which image to
>>      load. I did this and it returns the following error:
>> 
>>      error:  Unable to find opcode entry for 'imageload' with
>>      matching argument types:
>> 
>>      Found: i imageload p
>> 
>>      Is it impossible to use p-fields with imageload? And if so
>>      how else might I go about passing an image to Csound from
>>      iOS? 
>> 
>>      Here is a modified version of the imageload csd I made to
>>      test using p-fields with imageload, any help is appreciated:
>> 
>>      
>> 
>>      
>> 
>>      ; Select audio/midi flags here according to platform
>> 
>>      -n ;no sound output
>> 
>>      
>> 
>>      
>> 
>>      sr=48000
>> 
>>      ksmps=1
>> 
>>      nchnls=2
>> 
>>      ; this test .csd copies image.png into a new file
>>      'imageout.png'
>> 
>>      giimage1 init
>> 
>>      instr 1
>> 
>>      giimage1 imageload p4
>> 
>>      giimagew, giimageh imagesize giimage1
>> 
>>      giimage2 imagecreate giimagew,giimageh
>> 
>>      kndx = 0
>> 
>>      kx_ linseg 0, p3, 1
>> 
>>      ;print imagewidth and imageheigth of image.png
>> 
>>      prints "imagewidth = %f pixels, imageheigth = %f pixels\\n",
>>      giimagew, giimageh
>> 
>>      myloop:
>> 
>>      ky_ = kndx/(giimageh)
>> 
>>      kr_, kg_, kb_ imagegetpixel giimage1, kx_, ky_
>> 
>>      imagesetpixel giimage2, kx_, ky_, kr_, kg_, kb_
>> 
>>      loop_lt kndx, 0.5, giimageh, myloop
>> 
>>      endin
>> 
>>      instr 2
>> 
>>      imagesave giimage2, "imageout.png"
>> 
>>      endin
>> 
>>      instr 3
>> 
>>      imagefree giimage1
>> 
>>      imagefree giimage2
>> 
>>      endin
>> 
>>      
>> 
>>      
>> 
>>      i1 1 1 "abyss.jpg"
>> 
>>      i2 2 1
>> 
>>      i3 3 1
>> 
>>      e
>> 
>>      
>> 
>>      
>> Csound mailing list Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports
>> to https://github.com/csound/csound/issues Discussions of bugs and
>> features can be posted here
>> Csound mailing list Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>> https://github.com/csound/csound/issues Discussions of bugs and features
>> can be posted here
>> --
>> _____________________________________________
>> Dr. Richard Boulanger
>> Professor of Electronic Production and Design
>> Professional Writing and Music Technology Division
>> Berklee College of Music
>> ______________________________________________
>> President of Boulanger Labs - http://boulangerlabs.com
>> Author & Editor of The Csound Book - http://mitpress.mit.edu/books/csound-book
>> Author & Editor of The Audio Programming Book -
>> http://mitpress.mit.edu/books/audio-programming-book
>> ______________________________________________
>> about: http://www.boulangerlabs.com/about/richardboulanger/
>> about: http://www.csounds.com/community/developers/dr-richard-boulanger/
>> music:http://www.csounds.com/community/developers/dr-richard-boulanger/dr-richard-b
>> oulanger-music/
>> ______________________________________________
>> email: rboulanger@berklee.edu
>> facebook: https://www.facebook.com/richard.boulanger.58
>> Csound mailing list Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>> https://github.com/csound/csound/issues Discussions of bugs and features can
>> be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-04-29 20:35
From"Dr. Richard Boulanger"
SubjectRe: Image Opcodes with P Fields Error
I have some .png things that I could share/send/post - including model instruments that I use to test things in CsoundQt.

But, as Victor points out, there are some limitations with iOS. (and possibly Android?)



On Fri, Apr 29, 2016 at 2:36 PM, jpff <jpff@codemist.co.uk> wrote:
Is tere a library for png fies we can use?  Both legally and practically?

On Fri, 29 Apr 2016, Dr. Richard Boulanger wrote:

It would be great to add them to the latest release.  Especially considering
that all iOS devices have cameras and capture images.  Possible?  Hope so.  
R

On Fri, Apr 29, 2016 at 12:48 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie>
wrote:
      image opcodes are not available on ios as far as I know

      Victor LazzariniDean of Arts, Celtic Studies, and Philosophy

Maynooth University
Ireland

On 29 Apr 2016, at 16:53, Emmett Palaima <epalaima@BERKLEE.EDU> wrote:

      Hi, I am working on an app with Csound iOS that uses
      Csound's image opcodes, and was looking to pass different
      image files in via score events. To this end I would need to
      give the imageload a p-field argument for which image to
      load. I did this and it returns the following error:

      error:  Unable to find opcode entry for 'imageload' with
      matching argument types:

      Found: i imageload p

      Is it impossible to use p-fields with imageload? And if so
      how else might I go about passing an image to Csound from
      iOS? 

      Here is a modified version of the imageload csd I made to
      test using p-fields with imageload, any help is appreciated:


      <CsoundSynthesizer>

      <CsOptions>

      ; Select audio/midi flags here according to platform

      -n ;no sound output

      </CsOptions>

      <CsInstruments>


      sr=48000

      ksmps=1

      nchnls=2


      ; this test .csd copies image.png into a new file
      'imageout.png'


      giimage1 init


      instr 1

      giimage1 imageload p4

      giimagew, giimageh imagesize giimage1

      giimage2 imagecreate giimagew,giimageh


      kndx = 0

      kx_ linseg 0, p3, 1

      ;print imagewidth and imageheigth of image.png

      prints "imagewidth = %f pixels, imageheigth = %f pixels\\n",
      giimagew, giimageh


      myloop:

      ky_ = kndx/(giimageh)

      kr_, kg_, kb_ imagegetpixel giimage1, kx_, ky_

      imagesetpixel giimage2, kx_, ky_, kr_, kg_, kb_

      loop_lt kndx, 0.5, giimageh, myloop

      endin


      instr 2


      imagesave giimage2, "imageout.png"

      endin


      instr 3

      imagefree giimage1

      imagefree giimage2

      endin


      </CsInstruments>

      <CsScore>


      i1 1 1 "abyss.jpg"

      i2 2 1

      i3 3 1

      e


      </CsScore>

      </CsoundSynthesizer>


Csound mailing list Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports
to https://github.com/csound/csound/issues Discussions of bugs and
features can be posted here

Csound mailing list Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
https://github.com/csound/csound/issues Discussions of bugs and features
can be posted here




--
_____________________________________________
Dr. Richard Boulanger
Professor of Electronic Production and Design
Professional Writing and Music Technology Division
Berklee College of Music
______________________________________________
President of Boulanger Labs - http://boulangerlabs.com
Author & Editor of The Csound Book - http://mitpress.mit.edu/books/csound-book
Author & Editor of The Audio Programming Book -
http://mitpress.mit.edu/books/audio-programming-book
______________________________________________
about: http://www.boulangerlabs.com/about/richardboulanger/
about: http://www.csounds.com/community/developers/dr-richard-boulanger/
music:http://www.csounds.com/community/developers/dr-richard-boulanger/dr-richard-b
oulanger-music/
______________________________________________
email: rboulanger@berklee.edu
facebook: https://www.facebook.com/richard.boulanger.58
Csound mailing list Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
https://github.com/csound/csound/issues Discussions of bugs and features can
be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here



--
_____________________________________________
Dr. Richard Boulanger
Professor of Electronic Production and Design
Professional Writing and Music Technology Division
Berklee College of Music
______________________________________________
President of Boulanger Labs - http://boulangerlabs.com
Author & Editor of The Csound Book - http://mitpress.mit.edu/books/csound-book
Author & Editor of The Audio Programming Book - http://mitpress.mit.edu/books/audio-programming-book
______________________________________________
about: http://www.boulangerlabs.com/about/richardboulanger/
about: http://www.csounds.com/community/developers/dr-richard-boulanger/
music: http://www.csounds.com/community/developers/dr-richard-boulanger/dr-richard-boulanger-music/

______________________________________________
email: rboulanger@berklee.edu
facebook: https://www.facebook.com/richard.boulanger.58
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-04-29 23:05
FromVictor Lazzarini
SubjectRe: Image Opcodes with P Fields Error
Not a problem on Android. It’s possible to build plugins on Android. In this particular case, we just need to find the dependencies
for that platform and make a plugin makefile.
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 29 Apr 2016, at 20:35, Dr. Richard Boulanger  wrote:
> 
> I have some .png things that I could share/send/post - including model instruments that I use to test things in CsoundQt.
> 
> But, as Victor points out, there are some limitations with iOS. (and possibly Android?)
> 
> 
> 
> On Fri, Apr 29, 2016 at 2:36 PM, jpff  wrote:
> Is tere a library for png fies we can use?  Both legally and practically?
> 
> On Fri, 29 Apr 2016, Dr. Richard Boulanger wrote:
> 
> It would be great to add them to the latest release.  Especially considering
> that all iOS devices have cameras and capture images.  Possible?  Hope so.  
> R
> 
> On Fri, Apr 29, 2016 at 12:48 PM, Victor Lazzarini 
> wrote:
>       image opcodes are not available on ios as far as I know
> 
>       Victor LazzariniDean of Arts, Celtic Studies, and Philosophy
> 
> Maynooth University
> Ireland
> 
> On 29 Apr 2016, at 16:53, Emmett Palaima  wrote:
> 
>       Hi, I am working on an app with Csound iOS that uses
>       Csound's image opcodes, and was looking to pass different
>       image files in via score events. To this end I would need to
>       give the imageload a p-field argument for which image to
>       load. I did this and it returns the following error:
> 
>       error:  Unable to find opcode entry for 'imageload' with
>       matching argument types:
> 
>       Found: i imageload p
> 
>       Is it impossible to use p-fields with imageload? And if so
>       how else might I go about passing an image to Csound from
>       iOS? 
> 
>       Here is a modified version of the imageload csd I made to
>       test using p-fields with imageload, any help is appreciated:
> 
> 
>       
> 
>       
> 
>       ; Select audio/midi flags here according to platform
> 
>       -n ;no sound output
> 
>       
> 
>       
> 
> 
>       sr=48000
> 
>       ksmps=1
> 
>       nchnls=2
> 
> 
>       ; this test .csd copies image.png into a new file
>       'imageout.png'
> 
> 
>       giimage1 init
> 
> 
>       instr 1
> 
>       giimage1 imageload p4
> 
>       giimagew, giimageh imagesize giimage1
> 
>       giimage2 imagecreate giimagew,giimageh
> 
> 
>       kndx = 0
> 
>       kx_ linseg 0, p3, 1
> 
>       ;print imagewidth and imageheigth of image.png
> 
>       prints "imagewidth = %f pixels, imageheigth = %f pixels\\n",
>       giimagew, giimageh
> 
> 
>       myloop:
> 
>       ky_ = kndx/(giimageh)
> 
>       kr_, kg_, kb_ imagegetpixel giimage1, kx_, ky_
> 
>       imagesetpixel giimage2, kx_, ky_, kr_, kg_, kb_
> 
>       loop_lt kndx, 0.5, giimageh, myloop
> 
>       endin
> 
> 
>       instr 2
> 
> 
>       imagesave giimage2, "imageout.png"
> 
>       endin
> 
> 
>       instr 3
> 
>       imagefree giimage1
> 
>       imagefree giimage2
> 
>       endin
> 
> 
>       
> 
>       
> 
> 
>       i1 1 1 "abyss.jpg"
> 
>       i2 2 1
> 
>       i3 3 1
> 
>       e
> 
> 
>       
> 
>       
> 
> 
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports
> to https://github.com/csound/csound/issues Discussions of bugs and
> features can be posted here
> 
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features
> can be posted here
> 
> 
> 
> 
> --
> _____________________________________________
> Dr. Richard Boulanger
> Professor of Electronic Production and Design
> Professional Writing and Music Technology Division
> Berklee College of Music
> ______________________________________________
> President of Boulanger Labs - http://boulangerlabs.com
> Author & Editor of The Csound Book - http://mitpress.mit.edu/books/csound-book
> Author & Editor of The Audio Programming Book -
> http://mitpress.mit.edu/books/audio-programming-book
> ______________________________________________
> about: http://www.boulangerlabs.com/about/richardboulanger/
> about: http://www.csounds.com/community/developers/dr-richard-boulanger/
> music:http://www.csounds.com/community/developers/dr-richard-boulanger/dr-richard-b
> oulanger-music/
> ______________________________________________
> email: rboulanger@berklee.edu
> facebook: https://www.facebook.com/richard.boulanger.58
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here
> 
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> 
> 
> 
> -- 
> _____________________________________________
> Dr. Richard Boulanger
> Professor of Electronic Production and Design
> Professional Writing and Music Technology Division
> Berklee College of Music
> ______________________________________________
> President of Boulanger Labs - http://boulangerlabs.com
> Author & Editor of The Csound Book - http://mitpress.mit.edu/books/csound-book
> Author & Editor of The Audio Programming Book - http://mitpress.mit.edu/books/audio-programming-book
> ______________________________________________
> about: http://www.boulangerlabs.com/about/richardboulanger/
> about: http://www.csounds.com/community/developers/dr-richard-boulanger/
> music: http://www.csounds.com/community/developers/dr-richard-boulanger/dr-richard-boulanger-music/
> ______________________________________________
> email: rboulanger@berklee.edu
> facebook: https://www.facebook.com/richard.boulanger.58
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-04-30 20:29
FromPaul Batchelor
SubjectRe: Image Opcodes with P Fields Error
In the past, I've used lodepng as a lightweight alternative to libpng:

http://lodev.org/lodepng/


On Fri, Apr 29, 2016 at 3:05 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Not a problem on Android. It’s possible to build plugins on Android. In this particular case, we just need to find the dependencies
for that platform and make a plugin makefile.
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 29 Apr 2016, at 20:35, Dr. Richard Boulanger <rboulanger@berklee.edu> wrote:
>
> I have some .png things that I could share/send/post - including model instruments that I use to test things in CsoundQt.
>
> But, as Victor points out, there are some limitations with iOS. (and possibly Android?)
>
>
>
> On Fri, Apr 29, 2016 at 2:36 PM, jpff <jpff@codemist.co.uk> wrote:
> Is tere a library for png fies we can use?  Both legally and practically?
>
> On Fri, 29 Apr 2016, Dr. Richard Boulanger wrote:
>
> It would be great to add them to the latest release.  Especially considering
> that all iOS devices have cameras and capture images.  Possible?  Hope so.
> R
>
> On Fri, Apr 29, 2016 at 12:48 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie>
> wrote:
>       image opcodes are not available on ios as far as I know
>
>       Victor LazzariniDean of Arts, Celtic Studies, and Philosophy
>
> Maynooth University
> Ireland
>
> On 29 Apr 2016, at 16:53, Emmett Palaima <epalaima@BERKLEE.EDU> wrote:
>
>       Hi, I am working on an app with Csound iOS that uses
>       Csound's image opcodes, and was looking to pass different
>       image files in via score events. To this end I would need to
>       give the imageload a p-field argument for which image to
>       load. I did this and it returns the following error:
>
>       error:  Unable to find opcode entry for 'imageload' with
>       matching argument types:
>
>       Found: i imageload p
>
>       Is it impossible to use p-fields with imageload? And if so
>       how else might I go about passing an image to Csound from
>       iOS?
>
>       Here is a modified version of the imageload csd I made to
>       test using p-fields with imageload, any help is appreciated:
>
>
>       <CsoundSynthesizer>
>
>       <CsOptions>
>
>       ; Select audio/midi flags here according to platform
>
>       -n ;no sound output
>
>       </CsOptions>
>
>       <CsInstruments>
>
>
>       sr=48000
>
>       ksmps=1
>
>       nchnls=2
>
>
>       ; this test .csd copies image.png into a new file
>       'imageout.png'
>
>
>       giimage1 init
>
>
>       instr 1
>
>       giimage1 imageload p4
>
>       giimagew, giimageh imagesize giimage1
>
>       giimage2 imagecreate giimagew,giimageh
>
>
>       kndx = 0
>
>       kx_ linseg 0, p3, 1
>
>       ;print imagewidth and imageheigth of image.png
>
>       prints "imagewidth = %f pixels, imageheigth = %f pixels\\n",
>       giimagew, giimageh
>
>
>       myloop:
>
>       ky_ = kndx/(giimageh)
>
>       kr_, kg_, kb_ imagegetpixel giimage1, kx_, ky_
>
>       imagesetpixel giimage2, kx_, ky_, kr_, kg_, kb_
>
>       loop_lt kndx, 0.5, giimageh, myloop
>
>       endin
>
>
>       instr 2
>
>
>       imagesave giimage2, "imageout.png"
>
>       endin
>
>
>       instr 3
>
>       imagefree giimage1
>
>       imagefree giimage2
>
>       endin
>
>
>       </CsInstruments>
>
>       <CsScore>
>
>
>       i1 1 1 "abyss.jpg"
>
>       i2 2 1
>
>       i3 3 1
>
>       e
>
>
>       </CsScore>
>
>       </CsoundSynthesizer>
>
>
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports
> to https://github.com/csound/csound/issues Discussions of bugs and
> features can be posted here
>
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features
> can be posted here
>
>
>
>
> --
> _____________________________________________
> Dr. Richard Boulanger
> Professor of Electronic Production and Design
> Professional Writing and Music Technology Division
> Berklee College of Music
> ______________________________________________
> President of Boulanger Labs - http://boulangerlabs.com
> Author & Editor of The Csound Book - http://mitpress.mit.edu/books/csound-book
> Author & Editor of The Audio Programming Book -
> http://mitpress.mit.edu/books/audio-programming-book
> ______________________________________________
> about: http://www.boulangerlabs.com/about/richardboulanger/
> about: http://www.csounds.com/community/developers/dr-richard-boulanger/
> music:http://www.csounds.com/community/developers/dr-richard-boulanger/dr-richard-b
> oulanger-music/
> ______________________________________________
> email: rboulanger@berklee.edu
> facebook: https://www.facebook.com/richard.boulanger.58
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here
>
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>
>
>
> --
> _____________________________________________
> Dr. Richard Boulanger
> Professor of Electronic Production and Design
> Professional Writing and Music Technology Division
> Berklee College of Music
> ______________________________________________
> President of Boulanger Labs - http://boulangerlabs.com
> Author & Editor of The Csound Book - http://mitpress.mit.edu/books/csound-book
> Author & Editor of The Audio Programming Book - http://mitpress.mit.edu/books/audio-programming-book
> ______________________________________________
> about: http://www.boulangerlabs.com/about/richardboulanger/
> about: http://www.csounds.com/community/developers/dr-richard-boulanger/
> music: http://www.csounds.com/community/developers/dr-richard-boulanger/dr-richard-boulanger-music/
> ______________________________________________
> email: rboulanger@berklee.edu
> facebook: https://www.facebook.com/richard.boulanger.58
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-04-30 20:43
Fromjpff
SubjectRe: Image Opcodes with P Fields Error
What we really want is someting more general, which allows reading of a 
range of picture formats and gives access to colour values at an (x,y) 
location.  So far I have failed to find such, and it has to be ompatable 
with LGPL...

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-04-30 21:20
FromMichael Gogins
SubjectRe: Image Opcodes with P Fields Error
There is this: http://www.boost.org/doc/libs/1_60_0/libs/gil/doc/index.html.

It meets all our requirements, but it is C++.

Best,
Mike

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Sat, Apr 30, 2016 at 3:43 PM, jpff  wrote:
> What we really want is someting more general, which allows reading of a
> range of picture formats and gives access to colour values at an (x,y)
> location.  So far I have failed to find such, and it has to be ompatable
> with LGPL...
>
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-04-30 22:16
FromRory Walsh
SubjectRe: Image Opcodes with P Fields Error

Image processing is so easy with external libraries and native APIs that I'd always recommend doing this natively and passing the info to Csound. I don't think we need to pursue this kind of thing in Csound. Just my feelings. The less dependencies we have the better ;)

On 30 Apr 2016 9:21 pm, "Michael Gogins" <michael.gogins@gmail.com> wrote:
There is this: http://www.boost.org/doc/libs/1_60_0/libs/gil/doc/index.html.

It meets all our requirements, but it is C++.

Best,
Mike

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Sat, Apr 30, 2016 at 3:43 PM, jpff <jpff@codemist.co.uk> wrote:
> What we really want is someting more general, which allows reading of a
> range of picture formats and gives access to colour values at an (x,y)
> location.  So far I have failed to find such, and it has to be ompatable
> with LGPL...
>
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here