# Error message seems pointless

**URL:** <https://forum.cabbageaudio.com/t/error-message-seems-pointless/3428>\
**Category:** Csound Noobs\
**Created:** [13 October 2022 16:51 UTC](https://forum.cabbageaudio.com/t/error-message-seems-pointless/3428 "2022-10-13T16:51:41Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjmogo](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/mjmogo/32/3522_2.png) [@mjmogo](https://forum.cabbageaudio.com/u/mjmogo)\
**Post date:** [13 October 2022 16:51 UTC](https://forum.cabbageaudio.com/t/error-message-seems-pointless/3428/1 "2022-10-13T16:51:41Z")

</div>

I’ve gotten this error a number of times, but it doesn’t make sense to me because the code functions as it should.

`WARNING: x_range: perf-time code in global space, ignored`

and the offending code… (the whole array is not included)

```
gSfms_ranges[][] = fillarray(\
    x_range(-1, 1, 0, 1, 0.001),\
    x_range(0, 10000, 1, 1, 1),\
    x_range(1, 10000, 2, 1, 1),\
    x_range(0, 5000, 0, 1, 1),\
    x_range(0, 1, 0, 1, 0.001),\
    x_range(0, 1000, 0, 1, 1)\
...
)

```

and x\_range is defined as…

```
opcode x_range, S, iiiii
    iMin, iMax, iVal, iSkew, iIncr xin
    xout sprintf("range(%f, %f, %f, %f, %f)", iMin, iMax, iVal, iSkew, iIncr)
endop

```

Is it safe to ignore this particular instance of this error?

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [13 October 2022 18:15 UTC](https://forum.cabbageaudio.com/t/error-message-seems-pointless/3428/2 "2022-10-13T18:15:50Z")

</div>

The following gives me no such warnings? Maybe it’s something else in the code that’s triggering the warning?

```
opcode x_range, S, iiiii
    iMin, iMax, iVal, iSkew, iIncr xin
    xout sprintf("range(%f, %f, %f, %f, %f)", iMin, iMax, iVal, iSkew, iIncr)
endop

gSfms_ranges[][] = fillarray(\
    x_range(-1, 1, 0, 1, 0.001),\
    x_range(0, 10000, 1, 1, 1),\
    x_range(1, 10000, 2, 1, 1),\
    x_range(0, 5000, 0, 1, 1),\
    x_range(0, 1, 0, 1, 0.001),\
    x_range(0, 1000, 0, 1, 1))    
    
instr 1    
endin
```

---

<div class="post-metadata">

**Author:** ![mjmogo](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/mjmogo/32/3522_2.png) [@mjmogo](https://forum.cabbageaudio.com/u/mjmogo)\
**Post date:** [13 October 2022 20:06 UTC](https://forum.cabbageaudio.com/t/error-message-seems-pointless/3428/3 "2022-10-13T20:06:16Z")

</div>

Should I post this to the Csound mailing list? It seems that there are a number of false error messages. Or maybe it’s just me! 😉

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [13 October 2022 20:52 UTC](https://forum.cabbageaudio.com/t/error-message-seems-pointless/3428/4 "2022-10-13T20:52:54Z")

</div>

But I’m not seeing those warnings here. Are you running things from the command line or all from within Cabbage?

---

<div class="post-metadata">

**Author:** ![mjmogo](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/mjmogo/32/3522_2.png) [@mjmogo](https://forum.cabbageaudio.com/u/mjmogo)\
**Post date:** [13 October 2022 23:04 UTC](https://forum.cabbageaudio.com/t/error-message-seems-pointless/3428/5 "2022-10-13T23:04:07Z")

</div>

Within cabbage.

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [14 October 2022 07:45 UTC](https://forum.cabbageaudio.com/t/error-message-seems-pointless/3428/6 "2022-10-14T07:45:04Z")

</div>

Does the code I posted above trigger warning messages for you?

---

<div class="post-metadata">

**Author:** ![mjmogo](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/mjmogo/32/3522_2.png) [@mjmogo](https://forum.cabbageaudio.com/u/mjmogo)\
**Post date:** [14 October 2022 16:52 UTC](https://forum.cabbageaudio.com/t/error-message-seems-pointless/3428/7 "2022-10-14T16:52:28Z")

</div>

Yes, I get the same warning.

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [15 October 2022 09:02 UTC](https://forum.cabbageaudio.com/t/error-message-seems-pointless/3428/8 "2022-10-15T09:02:12Z")

</div>

That’s odd. I wonder why we are seeing this differences. I’m on an M1 machine but I can’t imagine that makes any difference.

---

<div class="post-metadata">

**Author:** ![mjmogo](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/mjmogo/32/3522_2.png) [@mjmogo](https://forum.cabbageaudio.com/u/mjmogo)\
**Post date:** [15 October 2022 16:24 UTC](https://forum.cabbageaudio.com/t/error-message-seems-pointless/3428/9 "2022-10-15T16:24:22Z")

</div>

I assume you are using the version of Csound that you bundle with Cabbage. I feel like this is one issue that we all fight. Things don’t appear to perform the same way from device to device, system to system, and user to user!

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [16 October 2022 08:34 UTC](https://forum.cabbageaudio.com/t/error-message-seems-pointless/3428/10 "2022-10-16T08:34:34Z")

</div>

Actually I’m using my own build of Csound. But it should still work the same
