Cockpit

* User Profile

Welcome, Guest. Please login or register.

Login with username, password and session length

Who's Online

  • *Users: 3
  • *Guests: 23
  • *Total: 26

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

Offline jr2mey

  • Forum GURU
  • *
  • Posts: 84
  • 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,064
  • 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: 84
  • 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: 615
  • 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: 84
  • 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

 

Recent Posts

Gift (from you to you)
by jackpilot
[Today at 08:52:47 AM]
New supplier for your sim
by jackpilot
[Today at 08:29:27 AM]
OEM MCP conversion worth the hassle?
by 727737Nut
[August 18, 2017, 06:54:49 PM]
Projector screens changing brightness
by ZK CWD
[August 18, 2017, 01:03:36 AM]
The Sim
by jackpilot
[August 17, 2017, 06:34:23 PM]
Solenoid Engines Start Switch Installation
by zeineddine
[August 17, 2017, 12:01:21 AM]
Back to School SALE event - 50% discount
by luisgordo
[August 16, 2017, 10:09:23 PM]
New here
by 737NGer
[August 16, 2017, 10:23:47 AM]
Telex 750 Headset 4 sale
by jackpilot
[August 15, 2017, 03:16:42 PM]
Boeing 737 Homecockpit parts
by mellox90
[August 14, 2017, 09:02:27 AM]
Hello from New US Based Supplier!
by navcom
[August 14, 2017, 05:44:37 AM]
737-800 Arduino X-Plane Build
by kurt-olsson
[August 13, 2017, 05:36:15 AM]
MH-60 Helicopter (retired Navy simulator) for sale
by navymustang
[August 11, 2017, 08:58:38 PM]
Oasis 737 Project
by 737NGer
[August 11, 2017, 05:11:40 PM]
Project Magenta sounds and PM Systems
by jr2mey
[August 11, 2017, 09:41:58 AM]
In search of this panel...
by XOrionFE
[August 09, 2017, 03:07:23 PM]
Mickey's Flightdeck - A Boeing 737-800 Cockpit on Youtube
by bernard S
[August 09, 2017, 08:21:22 AM]
Upgrade advice and final items clarification
by N606DL
[August 09, 2017, 06:19:22 AM]
XPlane and Avionics softwares.
by Ridgenj
[August 08, 2017, 08:59:32 PM]
Source for Color 5.7" LCD Flat Panels
by gjha97
[August 08, 2017, 12:38:20 PM]
back lite Lamps help needed
by jackpilot
[August 08, 2017, 11:19:56 AM]
CP flight, CDU, throttle
by Orphee
[August 06, 2017, 06:34:10 AM]
Extremely Close Call!
by Joe Lavery
[August 06, 2017, 02:34:29 AM]
P3D v4 Multi Channel
by Ed
[August 05, 2017, 10:38:44 PM]
German B738NG Homecockpit-Projekt
by kurt-olsson
[August 05, 2017, 09:12:08 AM]
mycockpit.org Gone?
by Bob Reed
[August 05, 2017, 08:05:51 AM]
Backlit Knobs Source?
by mickc
[August 04, 2017, 06:33:31 PM]
ActiveSky - across networked PCs anyone
by tennyson
[August 04, 2017, 08:46:21 AM]
Orlando Approach 17L - Working on Atmospheric Conditions & 3rd Party Airports
by Michael_B737_ATP
[August 04, 2017, 08:14:05 AM]
Go home Boeing, you're drunk....
by RayS
[August 03, 2017, 05:53:08 PM]