Stellarium in a multimedia installation

143 views
Skip to first unread message

Alessandro Fogar

unread,
Apr 29, 2021, 3:07:03 AM4/29/21
to Stellarium
Hi,

let me ask a question...

I'm an artist and a software developer.

I'm currently writing a new installation using stellar data.  

The idea is to sonify these data using Supercollider.


What I would like to do is to obtain data of celestial objects (stars, planets, etc.) intersecting  a meridian and sending them in some way to the sonification patch.
If possible in real time (i.e. with Stellarium running and sending the data).

Before reinventing the wheel I'm asking for some help...

Is there perhaps a plugin or a script I could use ?

I'm aware of Stellar Command but at the moment it is not an option, no internet connection in the installation site.

Many thanks in advance

Best

--
Alessandro Fogar

http://www.fogar.it

Georg Zotti

unread,
Apr 29, 2021, 4:15:24 AM4/29/21
to Stellarium
Hi!

I like the idea of doing something artistic, like sonifications, especially in a ready-made downloadable package with simple instructions that can be deployed by people not familiar with SC. (This looks quite impressive in itself, but is difficult for beginners with too little time and zero background in electronic music.) However, there is no function in Stellarium to trigger a signal on "meridian passage of a star brighter than mag X". You would have to write a plugin with a private list of interesting objects (like 1000 or 2500 brightest stars, and the planets, maybe 4 Galilean satellites of Jupiter (play with visibility, transits, shadows,...), and some special configuration for the orientation of the Milky Way? Also pulsars with rotation frequencies are available...) and frequently test the azimuth of all objects of this list. Building a dynamical list on a frame-by-frame basis may be much too slow.

If you want to go through all stars instead, look into SpecialZoneArray<Star>::draw() in ZoneArray.cpp. But do not change this function directly, rather take the relevant parts to read the data into your plugin and instead of rendering, emit your sound commands. 

Angelo Fraietta

unread,
Apr 29, 2021, 4:53:33 PM4/29/21
to Stellarium
You can download the data beforehand using VizieR, save it to file, and then probe that for RA/Dec in Stellarium (you can get all that using StellarCommand also and send to SC using OSC)
 
This piece was done with no internet at performance using pre-loaded VzieR tables using Stellar Command.

Angelo Fraietta

unread,
Apr 30, 2021, 1:07:52 AM4/30/21
to stell...@googlegroups.com
You can download the data beforehand using VizieR, save it to file, and then probe that with RA/Dec in Stellarium (you can get all that using StellarCommand also) 
This was done with no internet at performance.


On Thu, 29 Apr 2021 at 5:10 pm, Angelo Fraietta <ang...@smartcontroller.com.au> wrote:
Yes, i did it at Nime.  I have a library for connecting between stellarium and vizier and sonifying it

--
You received this message because you are subscribed to the Google Groups "Stellarium" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stellarium+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/stellarium/1595079b-667a-468f-8014-41ca25c90b5cn%40googlegroups.com.
--
-- 
Dr Angelo Fraietta
A.Eng, A.Mus.A, BA(Hons), PhD.

Home Page

There are those who seek knowledge for the sake of knowledge - that is CURIOSITY
There are those who seek knowledge to be known by others - that is VANITY
There are those who seek knowledge in order to serve - that is LOVE
    Bernard of Clairvaux (1090 - 1153)
--
-- 
Dr Angelo Fraietta
A.Eng, A.Mus.A, BA(Hons), PhD.

Home Page

There are those who seek knowledge for the sake of knowledge - that is CURIOSITY
There are those who seek knowledge to be known by others - that is VANITY
There are those who seek knowledge in order to serve - that is LOVE
    Bernard of Clairvaux (1090 - 1153)

Angelo Fraietta

unread,
Apr 30, 2021, 1:07:57 AM4/30/21
to stell...@googlegroups.com
Yes, i did it at Nime.  I have a library for connecting between stellarium and vizier and sonifying it
On Thu, 29 Apr 2021 at 5:07 pm, Alessandro Fogar <sfo...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "Stellarium" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stellarium+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/stellarium/1595079b-667a-468f-8014-41ca25c90b5cn%40googlegroups.com.

Alessandro Fogar

unread,
Apr 30, 2021, 2:17:21 AM4/30/21
to stell...@googlegroups.com
Angelo,

yes, I would love to use StellarCommand (with no internet) !

Can you guide me please ?

I've already read the paper: "Stellar Command: a planetarium software based cosmic performance interface".

All the best

AF

Alessandro Fogar

unread,
Apr 30, 2021, 2:18:13 AM4/30/21
to stell...@googlegroups.com
Georg,

many thanks for your very interesting and deep reply.

All the best

AF

--
You received this message because you are subscribed to the Google Groups "Stellarium" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stellarium+...@googlegroups.com.

Angelo Fraietta

unread,
Apr 30, 2021, 3:04:14 AM4/30/21
to Stellarium
Will you have access to the internet from the computer in preparation for performances? 

Alessandro Fogar

unread,
Apr 30, 2021, 3:25:32 AM4/30/21
to stell...@googlegroups.com
Angelo,

Yes, of course !

Many thanks

AF

Alessandro Fogar

unread,
May 1, 2021, 12:27:30 PM5/1/21
to stell...@googlegroups.com
Angelo, 

I've read the Stellar command manual and I understood the basic behaviour.

Still cannot understand how I can obtain the celestial object passing over the meridian line...

Can you please explain ?

Have I perhaps to send multiple OSC messages like this ?

/Stellar/osc 1.0 186.6492 -63.0989


Many many thanks and excuse me...

All the best

AF

Il giorno ven 30 apr 2021 alle ore 07:07 Angelo Fraietta <ang...@smartcontroller.com.au> ha scritto:

Angelo Fraietta

unread,
May 1, 2021, 6:48:44 PM5/1/21
to Stellarium
Greetings

First point, Stellar Command does not directly tell you the objects at the meridian from Stellarium, however, you can derive it with some cunning through VizieR - either live or with saved tables.

First, can I make the assumption that you will be displaying Stellarium with the meridian at the centre? If so, this makes it very easy. 

If my assumption is correct (that you are displaying meridian in the centre) Stellar Command will send you OSC messages for the RA/Dec for the centre position of the display as it changes as time progresses.  Stars in your VizieR table (if you are preloading) can be matched by filtering those with same RA (within a tolerance). 

If my assumption is wrong regarding display of Meridian (or rather, the meridian being at the centre of your display), please let me know. That simply becomes a mathematical equation for getting RA at the meridian given a date/time/geographical location.

I would love to hear your ideas.

Warmest regards

Alessandro Fogar

unread,
May 2, 2021, 2:02:34 AM5/2/21
to stell...@googlegroups.com
Hi,

yes, I know that Stellar Command does not directly tell me the objects at the meridian from Stellarium.

But I confirm that during the installation I'll be displaying Stellarium with the meridian at the centre.

I hoped to be able to show the stars intersecting the meridian zooming a little bit.

Please look at this example (here I changed the zoom factor, that can remain constant):


Many thanks for your precious help...

All the best

AF

You received this message because you are subscribed to a topic in the Google Groups "Stellarium" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/stellarium/Hlic0SezYv8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to stellarium+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/stellarium/513bd1d2-d229-416d-8e37-ac6da5eb7eben%40googlegroups.com.

Angelo Fraietta

unread,
May 2, 2021, 3:03:42 AM5/2/21
to Stellarium
I had a look at your video. Are you running Stellarium in a browser?  I use the actual Stellarium app and connect through Remote Control

Alessandro Fogar

unread,
May 2, 2021, 3:59:38 AM5/2/21
to stell...@googlegroups.com
Angelo,

No, the regular app on Mac os.

Cheers

AF

Georg Zotti

unread,
May 2, 2021, 4:19:03 AM5/2/21
to Stellarium
> That simply becomes a mathematical equation for getting RA at the meridian given a date/time/geographical location.

This is Sidereal Time and is available in the object info.

Allan Royal

unread,
May 4, 2021, 9:24:40 AM5/4/21
to stell...@googlegroups.com
Gostaria de opinar também sobre o stellarium ter fração de segundos , isso para astrometria seria um salto muito significativo !!!

Angelo Fraietta

unread,
May 5, 2021, 4:39:48 PM5/5/21
to Stellarium
Yes, but we don't have any objects. So we need the RA from the display via remote control and then we query VizieR (or the pre-saved tables) for objects at that RA.  

Angelo Fraietta

unread,
May 6, 2021, 6:08:16 PM5/6/21
to Stellarium
It will be easy to get Stellarium to Meridian - simply send a set azimuth to 0 - which is north - through OSC.
If you want to do a setup, the way I would do a script and run it using the script command in OSC.
You can use the loadTables command if you have pr-saved tables.

Alessandro Fogar

unread,
May 29, 2021, 10:37:40 AM5/29/21
to stell...@googlegroups.com
Dear Georg,

I succeeded at last to build Stellarium and I'd like to do what you suggested, I'd need not only the stars but other interesting objects too (like 1000 or 2500 brightest stars, the planets, the satellites, the moon, the galaxies, the constellation lines, the ISS, etc.).

I am really in a hurry (first show is in 1 month, probably in Austria too, during the summer), I need your (or other's) precious help please...

I looked into SpecialZoneArray<Star>::draw() in ZoneArray.cpp but I need some guidance if possible. It seems that the stars there have fixed coordinates i.e. don't move.

And obviously I need the other objects too...

At the moment the idea is to build a special release of Stellarium with the modifications to send the data to Sc3 via OSC (I already know how to do the OSC part).

Many thanks in advance

Best regards

Alessandro Fogar

Il giorno gio 29 apr 2021 alle ore 10:15 Georg Zotti <georg...@univie.ac.at> ha scritto:
--
You received this message because you are subscribed to the Google Groups "Stellarium" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stellarium+...@googlegroups.com.

Georg Zotti

unread,
May 29, 2021, 11:21:31 AM5/29/21
to Stellarium
OMG, first show in 1 month?

Yes, the stars in the catalog don't move as StelPainter does the rendering after projection. Still, inside the method you see:

if (withExtinction)
{ Vec3f altAz(vf); altAz.normalize();
core->j2000ToAltAzInPlaceNoRefraction(&altAz);
float extMagShift=0.0f; extinction.forward(altAz, &extMagShift);
extinctedMagIndex = s->getMag() + static_cast<int>(extMagShift/k);
if (extinctedMagIndex >= cutoffMagStep || extinctedMagIndex<0) // i.e., if extincted it is dimmer than cutoff or extinctedMagIndex is negative (missing star catalog), so remove
continue; 
}

This needs and shows how to convert to AltAz coordinates. (Use StelUtils::rectToSphe() to convert to angles [radians] if needed) If azimuth is close enough to 0 (in this internal routine, 0=south (?)), trigger your sound (modulate by altitude?)

Run this method (or a loop similar to this) in your plugin 1/second to not overstress the audio system. If you modify Stellarium in this area directly, I cannot say what happens. If in panic, maybe add a counter and emit the audio commands only every 15 or 100 frames.

For the planets, you should take a look into SolarSystem::draw(). Instead of drawing the planet, ask for its position, convert to AltAz, place a sound where you want it.

HTH, good luck!

Georg

Alessandro Fogar

unread,
May 29, 2021, 11:38:15 AM5/29/21
to stell...@googlegroups.com
Georg,

Many thanks !

What about galaxies, satellites and Constellation lines ?

All the best

AF


Georg Zotti

unread,
May 29, 2021, 11:57:56 AM5/29/21
to Stellarium
Well, one after the other...

Look into the draw() methods of each object class. Each object can provide Vec3d StelObject::getAltAzPosApparent(const StelCore* core) const;

You must test if position is reasonably close to the meridian. There is no built-in "trigger" for moving over the meridian.

How do you sonify constellation lines? Find center of every line and handle this?

G.

Alessandro Fogar

unread,
May 29, 2021, 12:02:56 PM5/29/21
to stell...@googlegroups.com
Georg, 

Many thanks again !

About the constellation... No, I'd like to receive the position where the constellation line encounters the meridian and then I use that to sonify.

I'd also need the constellation name if possible...

Best

AF

Georg Zotti

unread,
May 29, 2021, 12:20:30 PM5/29/21
to Stellarium
May even be easier: each line has two stars. Test if one star is east, the other west, and continue sound if true.

Look into ConstellationMgr::drawLines() and drawNames().

Alessandro Fogar

unread,
Jun 8, 2021, 7:38:50 AM6/8/21
to stell...@googlegroups.com
Dear Georg,

I am trying to apply some changes to Stellarium code with your precious suggestions...

Yes, now I am able to see that the stars in the catalog move...

There's only a thing I cannot understand, it's like if the stars come in big chunks of data and this render the triggering of the sound events not really continuous, 

And also when you zoom something (for example Antares) I obtain different behaviors.

This for sure arises from the fact that I ignore the inner workings of Stellarium...

I include the modified code and two examples of output showing the behaviour.

If you can, please let me know...

Many many thanks

Alessandro Fogar


stellarium_default_view.txt
ZoneArray.cpp
stellarium_zoom_Antares.txt

Georg Zotti

unread,
Jun 10, 2021, 6:14:59 PM6/10/21
to Stellarium
Hi!

Yes, the stars come in chunks, for efficiency. But I am sorry, this part of the code is not mine. I must reverse-engineer this as well and am too short in time these weeks to dive further into your project, sorry. 

travis barbier

unread,
Jun 10, 2021, 6:41:01 PM6/10/21
to stell...@googlegroups.com
Can someone write code that can connect my Celestron Astro fi to stellarium?

Georg Zotti

unread,
Jun 11, 2021, 5:50:48 AM6/11/21
to Stellarium
You could, when you have identified objects you need to sonify (close enough to the meridian), collect the relevant data of such objects (e.g. type, magnitude, color?) into your own lists and then once per frame (or once per second ?) call a function to trigger these sounds. Maybe this gives more accurate timing. I don't know how much it disturbs the sounds when trigger points are not in sync by 1/60 s or so (within 1 frame).

sfo...@gmail.com schrieb am Dienstag, 8. Juni 2021 um 13:38:50 UTC+2:

Alexandros Kosiaris

unread,
Jun 11, 2021, 6:11:41 AM6/11/21
to stell...@googlegroups.com
Astro Fi seems to be an embedded version of the Celestron Skyportal
Wifi module. If that's true, then it might not be needed to write any
kind of code for this to work. Googling for Skyportal and ASCOM (if
you are using windows), or Skyportal and INDI (if you are using
linux/mac) does return a few results of people having tried to do
that, reportedly successfully. That being said, it looks like a old,
tedious and error prone path with no guarantee of success, and very
few docs. If you are the tinkering type and feel like going into some
pain to get it to work, you can try them out. Otherwise, my guess
would be you are a bit out of luck.
> To view this discussion on the web visit https://groups.google.com/d/msgid/stellarium/CAJUFNyfThFJO4Vza3ozwYM_ZZbxykyaDMh5DkFVbpGKEd0w29Q%40mail.gmail.com.

travis barbier

unread,
Jun 11, 2021, 10:37:44 AM6/11/21
to stell...@googlegroups.com
I have used the platform from the last time for so long and I also have been using sky safari when it was available and it connected to my telescope and it did very well but recently I switched from Samsung to Apple and the app was not free anymore so I cannot get sky safari so for the past few months I have been using this the last time platform and have seen literally it’s the worst the reason is because it is so limited On how many stars at Kinsey recently I tried to do a list for stargazing challenge and literally this last year and had none of the items on the list which was 50 items including mostly of which were NGC objects.

Georg Zotti

unread,
Jun 11, 2021, 10:43:12 AM6/11/21
to Stellarium
Please stop hijacking this thread. This is about an artist's project, not about support for some Celestron telescope. I will delete further unrelated posts.

travis barbier

unread,
Jun 11, 2021, 10:49:18 AM6/11/21
to stell...@googlegroups.com
I apologize for what I said I am only requesting that someone can make a program that can allow Celestron Astro fi telescopes connect with stellarium because it would be a huge help for me.

Alexandros Kosiaris

unread,
Jun 11, 2021, 11:17:44 AM6/11/21
to stell...@googlegroups.com
Oops, sorry, my mistake.

Alessandro Fogar

unread,
Jun 13, 2021, 9:05:46 AM6/13/21
to stell...@googlegroups.com
Georg,

let me say at first, many many thanks for your support...

I'm slowly understanding where I have to intercept the data and trigger the OSC messages.

I hope to finish soon.

Many thanks

Best regards

AF




Reply all
Reply to author
Forward
0 new messages