Cockpit

* User Profile

Welcome, Guest. Please login or register.

Login with username, password and session length

Who's Online

  • *Users: 4
  • *Guests: 39
  • *Total: 43

Author Topic: Project Magenta sounds and PM Systems  (Read 502 times)

Offline jr2mey

  • Forum GURU
  • *
  • Posts: 85
  • Aviation Enthusiast
  • First Name: James
  • Home Location: Tacoma
Project Magenta sounds and PM Systems
« on: July 28, 2017, 12:04:15 PM »
Hello all,

Seeing how powerfull PMSystems is, I am wondering if it can trigger an user defined sound event within PMSounds with logics writen in Pmsystems. Example:

if Landinglight=on and flappos>15 and fsaltitude <10000
then playwav= wavefile //something inside Pmsounds

Thanks,
James

James

Offline Bob Reed

  • Administrator
  • I am chained to this website!
  • *
  • Posts: 2,137
  • Bob the Builder!
  • First Name: Bob
  • Home Location: Holley, New York
Re: Project Magenta sounds and PM Systems
« Reply #1 on: July 28, 2017, 06:15:47 PM »
I believe the answer to this question is yes.....  :D :P

Offline jr2mey

  • Forum GURU
  • *
  • Posts: 85
  • Aviation Enthusiast
  • First Name: James
  • Home Location: Tacoma
Re: Project Magenta sounds and PM Systems
« Reply #2 on: July 28, 2017, 10:36:04 PM »
So I like the answer yes  ;D but then, what is it im doing wrong.  Im am unable to get the event to trigger the user defined sound...This is what is written in my 737 logic file.

if Landinglight=on and flappos>15 and fsaltitude <10000
               then playwav= prepland.wav
end if

James

Offline RayS

  • I may as well be Staff!
  • *
  • Posts: 628
  • Private Pilot, Sim Enthusiast
    • Anthony Scott Photography
  • First Name: Ray Sotkiewicz
  • Home Location: Seattle, WA
Re: Project Magenta sounds and PM Systems
« Reply #3 on: August 01, 2017, 05:59:02 AM »
Just a couple of hunches:

1. maybe you need to reference the fully-qualified filename: eg: C:\Soundfiles\prepland.wav ?

2. Maybe case-sensitivity is in play here? Landinglight is capitalized.. maybe it shouldn't be?

3. Maybe multiple conditions need to be nested?

   Instead of: if Landinglight=on and flappos>15 and fsaltitude <10000

   Maybe it should be:

      if landinglight = on
         if flappos  > 15
            if fsaltitude < 10000
               then playwav=prepland.wav
            endif
         endif
      endif
   
4. I'd also add VS... If verticalspeed < 0 or something. (or whatever it is in PMSystems)

5. Maybe the values are FLOAT values instead of integers: flaps = 15.0?

I literally know nothing about PM systems, but hopefully some of this is helpful...
« Last Edit: August 01, 2017, 05:59:56 AM by RayS »
Ray Sotkiewicz

Offline jr2mey

  • Forum GURU
  • *
  • Posts: 85
  • Aviation Enthusiast
  • First Name: James
  • Home Location: Tacoma
Re: Project Magenta sounds and PM Systems
« Reply #4 on: August 11, 2017, 09:41:58 AM »
Awesome Ray!

When I get home I will see if that works.  Programming is something that I have never done before and have been trying to decifer what PM has written in its SYS VAR file and mimic.

Actually I'm now in full on learning mode for C++ becuase of this one stuipid little request, LOL.  Then thinking about Java after that......well ... maybe if I can learn C++ and not through the computer out into the yard... :o

James

 

COUNTDOWN TO WF2017


WORLDFLIGHT TEAM USA

Simulator REBUILD will begin in

Recent Posts

FDS Shell Black or Raw Aluminum
by blueskydriver
[Today at 09:50:38 PM]
Homebuilt backlit panels
by kazmin
[Today at 05:28:47 PM]
XPlane and Avionics softwares.
by Pinello
[Today at 12:57:33 PM]
Cockpits for Sale...mine?
by simlady/ Karen
[Today at 11:48:42 AM]
Think about a VA
by Nlgravity
[October 21, 2017, 11:43:37 PM]
Lego Sets for Cockpit Items...trading?
by simlady/ Karen
[October 21, 2017, 11:18:52 AM]
737-800 Arduino X-Plane Build
by 737NGer
[October 21, 2017, 06:10:34 AM]
Post Your Pit!!!! 1000 Member Show and Tell
by Nlgravity
[October 21, 2017, 01:42:11 AM]
MyCockpit.org hack issues
by ifeliciano
[October 21, 2017, 01:37:09 AM]
Descent into NZQN (Queenstown NZ)
by Nlgravity
[October 21, 2017, 01:37:09 AM]
Greetings from Memphis TN
by dougsnow
[October 20, 2017, 04:43:16 PM]
PoKeys and Potentiometer Jitters
by ifeliciano
[October 19, 2017, 03:30:52 PM]
Correct Amber LEDs for 737 Overhead?
by MistyBlue
[October 19, 2017, 10:19:10 AM]
Worldflight 2017 Donations!
by Trevor Hale
[October 18, 2017, 07:01:34 PM]
Prepar3D Version 4.0 Announced
by Trevor Hale
[October 18, 2017, 12:23:20 PM]
PFC Jetliner Column Yoke USB
by AngeloC
[October 18, 2017, 10:22:18 AM]
Minor Sim Milestone: I-1 on PilotEdge...
by Ed
[October 18, 2017, 07:09:43 AM]
New supplier for your sim
by Fcoq
[October 18, 2017, 01:42:47 AM]
Rob's 733 Sim
by 737NGer
[October 17, 2017, 12:41:53 PM]
727-200 sim for sale
by blueskydriver
[October 17, 2017, 01:33:47 AM]
For Sale B737 Circuit Breaker Panels Kit...
by jackpilot
[October 16, 2017, 09:16:13 PM]
P3D v4 and WideTraffic crashing
by Trevor Hale
[October 16, 2017, 04:11:26 PM]
Boeing 737-800 Next Generation Simulator
by jackpilot
[October 16, 2017, 08:13:26 AM]
Bezels and Panels For Sale - B738
by hillbilly20
[October 14, 2017, 04:54:37 AM]
Side views
by Bob Reed
[October 13, 2017, 05:51:07 PM]
Cockpit Seats for Sale $700 or obo.
by blueskydriver
[October 13, 2017, 02:40:48 PM]
full working huds for sale
by navymustang
[October 13, 2017, 09:44:08 AM]
Auto Brake Panel for 30 degree rotary switches
by ifeliciano
[October 12, 2017, 01:49:50 PM]
Hi guys - new here with a question
by Blackhawk
[October 12, 2017, 01:30:29 PM]
Backlit Knobs Source?
by ifeliciano
[October 12, 2017, 10:34:12 AM]